UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

36 lines (30 loc) 1.03 kB
// Type definitions for react-jsonschema-form 0.30.1 // Project: https://github.com/mozilla-services/react-jsonschema-form // Definitions by: Dan Fox <https://github.com/iamdanfox> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference path="../react/react.d.ts" /> declare module "react-jsonschema-form" { import * as React from "react"; export interface FormProps { schema: {}; uiSchema?: {}; formData?: any; widgets?: {}; fields?: {}; 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> {} }