Skip to content

Commit aa69050

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

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/index.d.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface SimpleSelectProps {
4343
onOpenChange?(open: boolean): void;
4444
onPaste?(event: SimpleSelectEvent): void;
4545
onSearchChange?(search: string): void;
46-
onValueChange?(item: OptionValue): void;
46+
onValueChange?(item: OptionValue): void;
4747
options?: OptionValue[];
4848
placeholder?: string;
4949
renderGroupTitle?(index: number, group: any): React.ReactElement<any>;
@@ -55,7 +55,7 @@ export interface SimpleSelectProps {
5555
restoreOnBackspace?(item: OptionValue): string;
5656
search?: string;
5757
serialize?(item: OptionValue): string;
58-
style?: any;
58+
style?: React.CSSProperties;
5959
tether?: boolean;
6060
'tether-props'?: any;
6161
theme?: string;
@@ -69,7 +69,7 @@ export interface SimpleSelectProps {
6969
}
7070

7171
declare class SimpleSelect extends React.Component<SimpleSelectProps, any> {
72-
72+
7373
}
7474

7575
export interface MultiSelectProps extends SimpleSelectProps {
@@ -91,5 +91,13 @@ export interface MultiSelectProps extends SimpleSelectProps {
9191
}
9292

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

0 commit comments

Comments
 (0)