Skip to content

Instantly share code, notes, and snippets.

@seanforyou23
Created October 15, 2019 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanforyou23/60484029a78c463c79a129c885177dd5 to your computer and use it in GitHub Desktop.
Save seanforyou23/60484029a78c463c79a129c885177dd5 to your computer and use it in GitHub Desktop.
Output
Type '{ title: string; cellFormatters: ((value: IFormatterValueType, { rowData }: IExtra) => Element | (object & { title?: ReactNode; props?: any; }))[]; }' is not assignable to type 'string | ICell'.
Type '{ title: string; cellFormatters: ((value: IFormatterValueType, { rowData }: IExtra) => Element | (object & { title?: ReactNode; props?: any; }))[]; }' is not assignable to type 'ICell'.
Types of property 'cellFormatters' are incompatible.
Type '((value: IFormatterValueType, { rowData }: IExtra) => Element | (object & { title?: ReactNode; props?: any; }))[]' is not assignable to type '((data?: (string & { title?: ReactNode; props?: any; }) | (object & { title?: ReactNode; props?: any; }) | (ComponentClass<any, any> & { title?: ReactNode; props?: any; }) | (FunctionComponent<any> & { ...; }) | undefined, rowData?: IRowData | undefined, columnIndex?: number | undefined, column?: IColumn | undefined...'.
Type '(value: IFormatterValueType, { rowData }: IExtra) => Element | (object & { title?: ReactNode; props?: any; })' is not assignable to type '(data?: (string & { title?: ReactNode; props?: any; }) | (object & { title?: ReactNode; props?: any; }) | (ComponentClass<any, any> & { title?: ReactNode; props?: any; }) | (FunctionComponent<any> & { ...; }) | undefined, rowData?: IRowData | undefined, columnIndex?: number | undefined, column?: IColumn | undefined,...'.
Types of parameters 'value' and 'data' are incompatible.
Type '(string & { title?: ReactNode; props?: any; }) | (object & { title?: ReactNode; props?: any; }) | (ComponentClass<any, any> & { title?: ReactNode; props?: any; }) | (FunctionComponent<any> & { ...; }) | undefined' is not assignable to type 'IFormatterValueType'.
Type 'undefined' is not assignable to type 'IFormatterValueType'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment