No overload matches this call.
Overload 1 of 4, '(options: TestConfig<AnyPresentValue | undefined, AnyObject>): MixedSchema<AnyPresentValue | undefined, AnyObject, undefined, "">', gave the following error.
Type '(files: FileList) => boolean' is not assignable to type 'TestFunction<AnyPresentValue | undefined, AnyObject>'.
Types of parameters 'files' and 'value' are incompatible.
Type 'AnyPresentValue | undefined' is not assignable to type 'FileList'.
Type 'undefined' is not assignable to type 'FileList'.
Overload 2 of 4, '(test: TestFunction<AnyPresentValue | undefined, AnyObject>): MixedSchema<AnyPresentValue | undefined, AnyObject, undefined, "">', gave the following error.
Object literal may only specify known properties, and 'name' does not exist in type 'TestFunction<AnyPresentValue | undefined, AnyObject>'.ts(2769)
index.d.ts(66, 5): The expected type comes from property 'test' which is declared here on type 'TestConfig<AnyPresentValue | undefined, AnyObject>'
Describe what you are trying to accomplish AND what you have tried
When I remove FileList type from files arg, I got another error like file if of type unknow.
・code
・error