Skip to content

Commit 6728f03

Browse files
authored
Merge pull request #223 from lumaxis/config-typings
Add typings for config function
2 parents 3f15e85 + 40a2ac6 commit 6728f03

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)