Skip to content

Commit ad6a95f

Browse files
committed
tidied up d.ts as per conde review
1 parent 05a1c5f commit ad6a95f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export interface ReactJsonViewProps {
134134
*
135135
* Default: null
136136
*/
137-
defaultValue?: string | number | boolean | null | undefined | string[] | number[] | boolean[] | {}[] | {};
137+
defaultValue?: TypeDefaultValue | TypeDefaultValue[] | null;
138138
}
139139

140140
export interface OnCopyProps {
@@ -219,6 +219,8 @@ export interface OnSelectProps {
219219

220220
}
221221

222+
export type TypeDefaultValue = string | number | boolean | object;
223+
222224
export interface ThemeObject {
223225
base00: string;
224226
base01: string;

0 commit comments

Comments
 (0)