Skip to content

Commit 86205e5

Browse files
fix: add getConfig to types (#668)
1 parent 4ad3673 commit 86205e5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

types/config.d.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
export interface Config {
2-
testIdAttribute: string;
3-
asyncWrapper(cb: (...args: any[]) => any): Promise<any>;
4-
eventWrapper(cb: (...args: any[]) => any): void;
5-
asyncUtilTimeout: number;
6-
defaultHidden: boolean;
7-
throwSuggestions: boolean;
2+
testIdAttribute: string
3+
asyncWrapper(cb: (...args: any[]) => any): Promise<any>
4+
eventWrapper(cb: (...args: any[]) => any): void
5+
asyncUtilTimeout: number
6+
defaultHidden: boolean
7+
throwSuggestions: boolean
88
}
99

1010
export interface ConfigFn {
11-
(existingConfig: Config): Partial<Config>;
11+
(existingConfig: Config): Partial<Config>
1212
}
1313

14-
export function configure(configDelta: Partial<Config> | ConfigFn): void;
14+
export function configure(configDelta: Partial<Config> | ConfigFn): void
15+
export function getConfig(): Config

0 commit comments

Comments
 (0)