From 55f75b8f69eaf2bd2b35c634cd6ffc29956297b8 Mon Sep 17 00:00:00 2001 From: stefanfuchs Date: Tue, 4 Oct 2022 09:24:03 -0300 Subject: [PATCH] fix: typescript compilation (#1693) Co-authored-by: Rajeh Taher --- index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index edf4684..76ac264 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import { EventEmitter } from 'events' import { RequestInit } from 'node-fetch' -import puppeteer from 'puppeteer' +import * as puppeteer from 'puppeteer' declare namespace WAWebJS { @@ -399,10 +399,10 @@ declare namespace WAWebJS { * Remote store interface */ export interface Store { - sessionExists: ({session: string}) => Promise | boolean, - delete: ({session: string}) => Promise | any, - save: ({session: string}) => Promise | any, - extract: ({session: string, path: string}) => Promise | any, + sessionExists: (options: { session: string }) => Promise | boolean, + delete: (options: { session: string }) => Promise | any, + save: (options: { session: string }) => Promise | any, + extract: (options: { session: string, path: string }) => Promise | any, } /**