From d8652bb065c07f84fdd63bb5770680f98f3e6285 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Fri, 17 Nov 2017 12:06:42 -0800 Subject: [PATCH] Made name optional in jest::jasmine::createSpy See https://github.com/jasmine/jasmine/issues/1438 and https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21159. --- types/jest/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 1b8d137094..0a5c595cfa 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -555,7 +555,7 @@ declare namespace jasmine { function anything(): Any; function arrayContaining(sample: any[]): ArrayContaining; function objectContaining(sample: any): ObjectContaining; - function createSpy(name: string, originalFn?: (...args: any[]) => any): Spy; + function createSpy(name?: string, originalFn?: (...args: any[]) => any): Spy; function createSpyObj(baseName: string, methodNames: any[]): any; function createSpyObj(baseName: string, methodNames: any[]): T; function pp(value: any): string;