From d627b6bed6fc3e3726bd335f525aa13ee487a0fd Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Tue, 6 Jul 2021 13:35:53 -0500 Subject: [PATCH] fix: client typings not working --- src/client/client.ts | 4 ++-- tsconfig.json | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/client/client.ts b/src/client/client.ts index d00a0d9..f5115e7 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -9,8 +9,8 @@ export class Client { private _token: string; - public constructor(token: string, options?: DeepRequired) { - this.options = Object.assign(options, defaults.clientOptions); + public constructor(token: string, options?: IClientOptions) { + this.options = Object.assign(options as DeepRequired, defaults.clientOptions); this._token = token; this.api = new ApiClient(this._token, this.options.api); diff --git a/tsconfig.json b/tsconfig.json index 48415c0..567727e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,14 @@ { "compilerOptions": { "declaration": true, - "downlevelIteration": true, "lib": [ - "ESNext", + "ES2021", "DOM" ], "module": "CommonJS", "outDir": "dist", "removeComments": false, - "target": "ES2019", + "target": "ES2021", "alwaysStrict": true, "noImplicitAny": true, "noImplicitThis": true,