https://github.com/primefaces/primereact/issues/2274
error source
https://codesandbox.io/s/misty-cache-02 ... rc/App.tsx
error message
TS2769: No overload matches this call. Overload 1 of 2, '(props: InputTextProps | Readonly): InputText', gave the following error. Type 'RefObject' is not assignable to type 'string | (string & ((instance: HTMLInputElement | null) => void)) | (string & RefObject) | (RefObject & string) | ... 6 more ... | undefined'. Type 'RefObject' is not assignable to type '((instance: InputText | null) => void) & RefObject'. Type 'RefObject' is not assignable to type '(instance: InputText | null) => void'. Type 'RefObject' provides no match for the signature '(instance: InputText | null): void'. Overload 2 of 2, '(props: InputTextProps, context: any): InputText', gave the following error. Type 'RefObject' is not assignable to type 'string | (string & ((instance: HTMLInputElement | null) => void)) | (string & RefObject) | (RefObject & string) | ... 6 more ... | undefined'. Type 'RefObject' is not assignable to type '((instance: InputText | null) => void) & RefObject'. Type 'RefObject' is not assignable to type '(instance: InputText | null) => void'.
TS2769: No overload matches this call. Overload 1 of 2, '(props: InputTextProps | Readonly<InputTextProps>): InputText
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests