mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
20 lines
660 B
TypeScript
20 lines
660 B
TypeScript
|
type AnymatchFn = (testString: string) => boolean;
|
||
|
type AnymatchPattern = string|RegExp|AnymatchFn;
|
||
|
type AnymatchMatcher = AnymatchPattern|AnymatchPattern[]
|
||
|
type AnymatchTester = {
|
||
|
(testString: string|any[], returnIndex: true): number;
|
||
|
(testString: string|any[]): boolean;
|
||
|
}
|
||
|
|
||
|
type PicomatchOptions = {dot: boolean};
|
||
|
|
||
|
declare const anymatch: {
|
||
|
(matchers: AnymatchMatcher): AnymatchTester;
|
||
|
(matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
|
||
|
(matchers: AnymatchMatcher, testString: string|any[]): boolean;
|
||
|
}
|
||
|
|
||
|
export {AnymatchMatcher as Matcher}
|
||
|
export {AnymatchTester as Tester}
|
||
|
export default anymatch
|