Looking for advice on an anonymous function I've written:
static oneOf(options: any[], cb?: Function) ValidatorFn {
....
}
I'm a TypeScript beginner and unsure how to specify that the 'cb' must return a boolean. Can this be done, and would it affect the parser in any way?
Any guidance on how to accomplish this would be appreciated. Thanks!