Skip to content

Commit 40a2ac6

Browse files
committed
Add typings for config function
1 parent 3f15e85 commit 40a2ac6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ export type DoubledObjectWithKey<Key extends string> = {};
44

55
export type DoubledObject<Subject> = Subject;
66

7+
export interface TestdoubleConfig {
8+
promiseConstructor?: any;
9+
ignoreWarnings?: boolean;
10+
suppressErrors?: boolean;
11+
}
12+
export function config(config: TestdoubleConfig): void;
13+
714
declare function functionDouble(name?: string): TestDouble;
815
export { functionDouble as function };
916

0 commit comments

Comments
 (0)