mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
// Type definitions for react-jsonschema-form 0.38.1
|
|
// Project: https://github.com/mozilla-services/react-jsonschema-form
|
|
// Definitions by: Dan Fox <https://github.com/iamdanfox>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module "react-jsonschema-form" {
|
|
import * as React from "react";
|
|
|
|
export interface FormProps {
|
|
schema: {};
|
|
uiSchema?: {};
|
|
formData?: any;
|
|
widgets?: {};
|
|
fields?: {};
|
|
noValidate?: boolean;
|
|
showErrorList?: boolean;
|
|
validate?: (formData: any, errors: any) => any;
|
|
onChange?: (e: IChangeEvent) => any;
|
|
onError?: (e: any) => any;
|
|
onSubmit?: (e: any) => any;
|
|
liveValidate?: boolean;
|
|
safeRenderCompletion?: boolean;
|
|
}
|
|
|
|
export interface IChangeEvent {
|
|
edit: boolean;
|
|
formData: any;
|
|
errors: any[];
|
|
errorSchema: any;
|
|
idSchema: any;
|
|
status: string;
|
|
}
|
|
|
|
export default class Form extends React.Component<FormProps, any> {}
|
|
}
|