Skip to content

Commit

Permalink
Add HighlightedTextProps to typescript type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHeath committed Jul 17, 2020
1 parent d3f7072 commit 9fa989d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface SimpleSelectProps {
groupsAsColumns?: boolean;
hideResetButton?: boolean;
highlightedUid?: any;
id?: string;
name?: string;
open?: boolean;
onBlur?(event: SimpleSelectEvent): void;
Expand All @@ -43,7 +44,7 @@ export interface SimpleSelectProps {
onOpenChange?(open: boolean): void;
onPaste?(event: SimpleSelectEvent): void;
onSearchChange?(search: string): void;
onValueChange?(item: OptionValue): void;
onValueChange?(item: OptionValue): void;
options?: OptionValue[];
placeholder?: string;
renderGroupTitle?(index: number, group: any): React.ReactElement<any>;
Expand All @@ -55,7 +56,7 @@ export interface SimpleSelectProps {
restoreOnBackspace?(item: OptionValue): string;
search?: string;
serialize?(item: OptionValue): string;
style?: any;
style?: React.CSSProperties;
tether?: boolean;
'tether-props'?: any;
theme?: string;
Expand All @@ -69,7 +70,7 @@ export interface SimpleSelectProps {
}

declare class SimpleSelect extends React.Component<SimpleSelectProps, any> {

}

export interface MultiSelectProps extends SimpleSelectProps {
Expand All @@ -91,5 +92,14 @@ export interface MultiSelectProps extends SimpleSelectProps {
}

declare class MultiSelect extends React.Component<MultiSelectProps, any> {

}

}

export interface HighlightedTextProps {
partitions: Array<[number, number, string]>
text: string
style?: React.CSSProperties
highlightStyle?: React.CSSProperties
}
export class HighlightedText extends React.Component<HighlightedTextProps, any> {}

0 comments on commit 9fa989d

Please sign in to comment.