File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
packages/string-match-left-right Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function isStr(something: unknown): boolean {
1717 return typeof something === "string" ;
1818}
1919
20- interface Opts {
20+ export interface Opts {
2121 cb :
2222 | undefined
2323 | null
@@ -45,7 +45,7 @@ const defaults: Opts = {
4545 hungry : false ,
4646} ;
4747
48- const defaultGetNextIdx = ( index : number ) : number => index + 1 ;
48+ export const defaultGetNextIdx = ( index : number ) : number => index + 1 ;
4949
5050// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
5151function march (
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ interface Opts {
1717 hungry : boolean ;
1818}
1919declare const defaults : Opts ;
20+ declare const defaultGetNextIdx : ( index : number ) => number ;
2021declare function matchLeftIncl (
2122 str : string ,
2223 position : number ,
@@ -43,6 +44,8 @@ declare function matchRight(
4344) : boolean | string ;
4445
4546export {
47+ Opts ,
48+ defaultGetNextIdx ,
4649 defaults ,
4750 matchLeft ,
4851 matchLeftIncl ,
You can’t perform that action at this time.
0 commit comments