Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 05f82da

Browse files
authored
Merge pull request #17 from kunyan/update-d-ts
Update d.ts files
2 parents dcd3b82 + a91ccd9 commit 05f82da

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22
node_js:
3+
- '10'
4+
- '8'
35
- '7'
46
- '6'
57
cache: yarn

d.ts/EditableSelect.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ import * as React from 'react';
44
// <EditableSelect />
55
// ----------------------------------------
66
export interface IOption {
7+
label?: string;
78
text: string;
8-
value: string | boolean | number;
9+
value: string | number;
10+
disabled?: boolean;
911
}
1012

1113
export interface IEditableSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
1214
isEditing?: boolean;
1315
isEditable?: boolean;
1416
linkClassName?: string;
1517
nonValueText?: string;
16-
onSaving?: boolean;
17-
value: string;
18-
onSave: (value: string | number | string[]) => void;
18+
value: string | string[];
19+
onSave: (value: string | string[] | number) => void;
1920
onCancel?: () => void;
2021
options: string[] | IOption[];
2122
}

d.ts/EditableTextField.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export interface IEditableTextFieldProps extends React.InputHTMLAttributes<HTMLI
88
isEditable?: boolean;
99
linkClassName?: string;
1010
nonValueText?: string;
11-
onSaving?: boolean;
1211
value: string;
1312
onSave: (value: string | number | string[]) => void;
1413
onCancel?: () => void;

0 commit comments

Comments
 (0)