Archived
0
0
Fork 0

fix: client typings not working

This commit is contained in:
Daryl Ronningen 2021-07-06 13:35:53 -05:00
parent 59bf99d274
commit d627b6bed6
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
2 changed files with 4 additions and 5 deletions

View file

@ -9,8 +9,8 @@ export class Client {
private _token: string; private _token: string;
public constructor(token: string, options?: DeepRequired<IClientOptions>) { public constructor(token: string, options?: IClientOptions) {
this.options = Object.assign(options, defaults.clientOptions); this.options = Object.assign(options as DeepRequired<IClientOptions>, defaults.clientOptions);
this._token = token; this._token = token;
this.api = new ApiClient(this._token, this.options.api); this.api = new ApiClient(this._token, this.options.api);

View file

@ -1,15 +1,14 @@
{ {
"compilerOptions": { "compilerOptions": {
"declaration": true, "declaration": true,
"downlevelIteration": true,
"lib": [ "lib": [
"ESNext", "ES2021",
"DOM" "DOM"
], ],
"module": "CommonJS", "module": "CommonJS",
"outDir": "dist", "outDir": "dist",
"removeComments": false, "removeComments": false,
"target": "ES2019", "target": "ES2021",
"alwaysStrict": true, "alwaysStrict": true,
"noImplicitAny": true, "noImplicitAny": true,
"noImplicitThis": true, "noImplicitThis": true,