Skip to content

Commit

Permalink
fix(web): add missing typings for props (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Apr 6, 2020
1 parent 5be7066 commit a60393b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/components/basic/ReactiveBase.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export interface ReactiveBaseProps {
setSearchParams?: (newURL: string) => void;
searchStateHeader?: boolean;
analyticsConfig?: types.analyticsConfig;
appbaseConfig?: types.appbaseConfig;
enableAppbase?: boolean;
initialState?: types.children;
analytics?: boolean;
}
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/components/search/CategorySearch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface CategorySearchProps extends CommonProps {
customHighlight?: (...args: any[]) => any;
customQuery?: (...args: any[]) => any;
defaultQuery?: (...args: any[]) => any;
enableSynonyms?: boolean;
getMicInstance?: (...args: any[]) => any;
renderMic?: (...args: any[]) => any;
dataField?: types.dataFieldArray;
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/components/search/DataSearch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface DataSearchProps extends CommonProps {
getMicInstance?: (...args: any[]) => any;
renderMic?: (...args: any[]) => any;
dataField?: types.dataFieldArray;
enableSynonyms?: boolean;
aggregationField?: string;
size?: number;
debounce?: number;
Expand Down
10 changes: 10 additions & 0 deletions packages/web/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,14 @@ export interface analyticsConfig {
customEvents: object;
}

export interface appbaseConfig {
enableQueryRules: boolean;
recordAnalytics: boolean;
searchStateHeader: boolean;
emptyQuery: boolean;
suggestionAnalytics: boolean;
userId: string;
customEvents: object;
}

export type showClearAll = 'never' | 'always' | 'default' | true | false;

0 comments on commit a60393b

Please sign in to comment.