mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #32405 from zainafzal08/master
react-json-tree: label render callback has updated calling structure
This commit is contained in:
5
types/react-json-tree/index.d.ts
vendored
5
types/react-json-tree/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for react-json-tree v0.6.5
|
||||
// Type definitions for react-json-tree 0.6
|
||||
// Project: https://github.com/alexkuz/react-json-tree/
|
||||
// Definitions by: Grant Nestor <https://github.com/gnestor>
|
||||
// Zain Afzal <https://github.com/zainafzal08>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -18,7 +19,7 @@ export interface JSONTreeProps extends Props<JSONTreeComponent> {
|
||||
sortObjectKeys?: Function | boolean;
|
||||
shouldExpandNode?: (keyPath: (string | number)[], data: [any] | {}, level: number) => boolean;
|
||||
getItemString?: (type: string, data: [any] | {}, itemType: string, itemString: string) => JSX.Element;
|
||||
labelRenderer?: (raw: [string, string]) => JSX.Element;
|
||||
labelRenderer?: (keyPath: string[], nodeType?: string, expanded?: boolean, expandable?: boolean) => JSX.Element;
|
||||
valueRenderer?: (displayValue: string|number, rawValue?: string|number|boolean|null, ...keyPath: (string|number)[]) => JSX.Element;
|
||||
postprocessValue?: (raw: string) => JSX.Element;
|
||||
isCustomNode?: () => boolean;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
"ban-types": false,
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
Reference in New Issue
Block a user