lint fix
This commit is contained in:
parent
a23b25bff7
commit
5d94062581
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ export class APIClient {
|
|||
this.credential = opts.credential;
|
||||
// ネイティブ関数をそのまま変数に代入して使おうとするとChromiumではIllegal invocationエラーが発生するため、
|
||||
// 環境で実装されているfetchを使う場合は無名関数でラップして使用する
|
||||
this.fetch = opts.fetch || ((...args) => fetch(...args));
|
||||
this.fetch = opts.fetch ?? ((...args) => fetch(...args));
|
||||
}
|
||||
|
||||
public request<E extends keyof Endpoints, P extends Endpoints[E]['req']>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue