When I try to override any fieldType, I get error on the line where onChange is called.
Error: Argument of type 'string' is not assignable to parameter of type 'NumberField'.
Type 'string' is not assignable to type '{ type: "number"; min?: number | undefined; max?: number | undefined; }'.ts(2345)
Overview
When I try to override any fieldType, I get error on the line where onChange is called. Error: Argument of type 'string' is not assignable to parameter of type 'NumberField'. Type 'string' is not assignable to type '{ type: "number"; min?: number | undefined; max?: number | undefined; }'.ts(2345)
Example code snippet
Expectations
onChange should accept type that is the Value of the field, instead it accepts the FieldType.
Potential problematic source code
Overrides.ts