Property 'validate' in type 'Validator' is not assignable to the same property in base type 'Model<any, ModelSetOptions
See original GitHub issueHi,
I am using rappid js version 3.2 from months which works smooth as it should be but since from yesterday my build is failing and facing the below error
`ERROR in node_modules/@clientio/rappid/rappid.d.ts:6046:9 - error TS2416: Property ‘validate’ in type ‘Validator’ is not assignable to the same property in base type ‘Model<any, ModelSetOptions, {}>’. Type ‘(actions: string, …callback: ((err: Error, command: any, next: any) => boolean)[]) => Validator’ is not assignable to type ‘(attributes: Partial<any>, options?: any) => any’. Types of parameters ‘actions’ and ‘attributes’ are incompatible. Type ‘Partial<any>’ is not assignable to type ‘string’.
6046 validate(actions: string, …callback: Array<(err: Error, command: any, next: any) => boolean>): Validator;`
Its coming from rappid.d.ts which is a file inside node_modules. Not sure anything got changed from the rappidJS end.
We use Angular 10.
Please let me know how to solve this one or point me to the Issues where it was a known issue with any suggested fixes. Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top GitHub Comments
Thanks 😃 I’ll fix it it in Rappid for the upcoming release.
Sweet! Thanks