diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index f3895b90c0..bb21444d88 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -107,7 +107,7 @@ declare class Nightmare { html(path: string, saveType: 'MHTML'): Nightmare; pdf(path: string): Nightmare; pdf(path: string, options: Object): Nightmare; - pdf(cd:(err:Error, data:Buffer)=>void): Nightmare; + pdf(cb: (err: Error, data: Buffer) => void): Nightmare; title(): string; title(cb: (title: string) => void): Nightmare; url(cb: (url: string) => void): Nightmare; diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index 65391e8ef9..81790dda5f 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -196,7 +196,6 @@ new Nightmare() }) .run(done) - new Nightmare() .goto('http://www.google.com/') .wait('input')