fix: client typings not working
This commit is contained in:
parent
59bf99d274
commit
d627b6bed6
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in a new issue