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;
public constructor(token: string, options?: DeepRequired<IClientOptions>) {
this.options = Object.assign(options, defaults.clientOptions);
public constructor(token: string, options?: IClientOptions) {
this.options = Object.assign(options as DeepRequired<IClientOptions>, defaults.clientOptions);
this._token = token;
this.api = new ApiClient(this._token, this.options.api);

View file

@ -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,