Update index.d.ts (#43635)

Adding rawErrors to the individual widget so errors can be rendered inside the widget
This commit is contained in:
Ed Parsons
2020-04-06 10:23:14 -07:00
committed by GitHub
parent 6fc48129ce
commit 27b79116ea
+1
View File
@@ -124,6 +124,7 @@ declare module 'react-jsonschema-form' {
onBlur: (id: string, value: boolean | number | string | null) => void;
onFocus: (id: string, value: boolean | number | string | null) => void;
label: string;
rawErrors: string[];
}
export type Widget = React.StatelessComponent<WidgetProps> | React.ComponentClass<WidgetProps>;