mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Fixed Label Rendering callback in react-json-tree
This commit is contained in:
Vendored
+3
-2
@@ -1,6 +1,7 @@
|
||||
// Type definitions for react-json-tree v0.6.5
|
||||
// Type definitions for react-json-tree v0.6.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;
|
||||
|
||||
Reference in New Issue
Block a user