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;
|
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);
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Reference in a new issue