DefinitelyTyped/types/react-json/index.d.ts
Ferdy Budhidharma 6d2fc7181a feat(react-dependents): update to TS 2.8 (part 1 of 2) (#27743)
* feat(react-dependents): update to TS 2.8

* exclude react-dom

* fix version mismatches
2018-08-03 21:01:14 +01:00

20 lines
485 B
TypeScript

// Type definitions for react-json 0.2
// Project: https://github.com/arqex/react-json
// Definitions by: Christoph Spielmann <https://github.com/spielc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
type OnChangeHandler = (value: any) => void;
interface JsonProperties {
value: any;
onChange?: OnChangeHandler;
}
declare class Json extends React.Component<JsonProperties> {
}
export = Json;