{
+ constructor(props: any) {
+ super(props);
+ this.state.formData = {
+ firstName: "Chuck",
+ lastName: "Norris",
+ age: 75,
+ bio: "Roundhouse kicking asses since 1940",
+ password: "noneed"
+ };
+ }
+
+ public render() {
+ return (
+
+ {
+ );
+ }
+}
diff --git a/react-jsonschema-form/react-jsonschema-form.d.ts b/react-jsonschema-form/react-jsonschema-form.d.ts
new file mode 100644
index 0000000000..5004bb132d
--- /dev/null
+++ b/react-jsonschema-form/react-jsonschema-form.d.ts
@@ -0,0 +1,35 @@
+// Type definitions for react-jsonschema-form 0.30.1
+// Project: https://github.com/mozilla-services/react-jsonschema-form
+// Definitions by: Dan Fox
+// 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?: {};
+ 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 {}
+}