- Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
I was trying to do something like this:
const processorIndex = anymatch(this.processorGlobs, relativePath, { dot: true, returnIndex: true });But I get the following error:
error TS2345: Argument of type '{ dot: true; returnIndex: boolean; }' is not assignable to parameter of type 'true | PicomatchOptions'. Object literal may only specify known properties, and 'returnIndex' does not exist in type 'PicomatchOptions'. 26 returnIndex: true ~~~~~~~~~~~~~~~~~ Found 1 error. I think the typings should be changed to allow this, e.g.:
-(matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number; +(matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions & { returnIndex?: boolean }): number;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels