Skip to content

Commit 9fa989d

Browse files
committed
Add HighlightedTextProps to typescript type definitions
1 parent d3f7072 commit 9fa989d

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

src/index.d.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export interface SimpleSelectProps {
3434
groupsAsColumns?: boolean;
3535
hideResetButton?: boolean;
3636
highlightedUid?: any;
37+
id?: string;
3738
name?: string;
3839
open?: boolean;
3940
onBlur?(event: SimpleSelectEvent): void;
@@ -43,7 +44,7 @@ export interface SimpleSelectProps {
4344
onOpenChange?(open: boolean): void;
4445
onPaste?(event: SimpleSelectEvent): void;
4546
onSearchChange?(search: string): void;
46-
onValueChange?(item: OptionValue): void;
47+
onValueChange?(item: OptionValue): void;
4748
options?: OptionValue[];
4849
placeholder?: string;
4950
renderGroupTitle?(index: number, group: any): React.ReactElement<any>;
@@ -55,7 +56,7 @@ export interface SimpleSelectProps {
5556
restoreOnBackspace?(item: OptionValue): string;
5657
search?: string;
5758
serialize?(item: OptionValue): string;
58-
style?: any;
59+
style?: React.CSSProperties;
5960
tether?: boolean;
6061
'tether-props'?: any;
6162
theme?: string;
@@ -69,7 +70,7 @@ export interface SimpleSelectProps {
6970
}
7071

7172
declare class SimpleSelect extends React.Component<SimpleSelectProps, any> {
72-
73+
7374
}
7475

7576
export interface MultiSelectProps extends SimpleSelectProps {
@@ -91,5 +92,14 @@ export interface MultiSelectProps extends SimpleSelectProps {
9192
}
9293

9394
declare class MultiSelect extends React.Component<MultiSelectProps, any> {
94-
95-
}
95+
96+
}
97+
98+
export interface HighlightedTextProps {
99+
partitions: Array<[number, number, string]>
100+
text: string
101+
style?: React.CSSProperties
102+
highlightStyle?: React.CSSProperties
103+
}
104+
export class HighlightedText extends React.Component<HighlightedTextProps, any> {}
105+

0 commit comments

Comments
 (0)