Update typescript to 4.8.4

This commit is contained in:
Fedor Indutny 2022-11-14 11:35:37 -08:00 committed by GitHub
parent 4c622b6f81
commit e6ebfe4fca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 133 additions and 167 deletions

View file

@ -0,0 +1,13 @@
diff --git a/node_modules/@types/backbone/index.d.ts b/node_modules/@types/backbone/index.d.ts
index a172230..b85ab4c 100644
--- a/node_modules/@types/backbone/index.d.ts
+++ b/node_modules/@types/backbone/index.d.ts
@@ -218,7 +218,7 @@ declare namespace Backbone {
* E - Extensions to the model constructor options. You can accept additional constructor options
* by listing them in the E parameter.
*/
- class Model<T = any, S = Backbone.ModelSetOptions, E = {}> extends ModelBase implements Events {
+ class Model<T extends Record<string, any> = any, S = Backbone.ModelSetOptions, E = {}> extends ModelBase implements Events {
/**
* Do not use, prefer TypeScript's extend functionality.

View file

@ -0,0 +1,14 @@
diff --git a/node_modules/@types/node-fetch/index.d.ts b/node_modules/@types/node-fetch/index.d.ts
index 346d0b2..8b3efdd 100755
--- a/node_modules/@types/node-fetch/index.d.ts
+++ b/node_modules/@types/node-fetch/index.d.ts
@@ -19,7 +19,8 @@
import FormData = require('form-data');
import { RequestOptions } from "http";
import { URLSearchParams, URL } from "url";
-import { AbortSignal } from "./externals";
+// Avoid type conflicts!
+// import { AbortSignal } from "./externals";
export class Request extends Body {
constructor(input: RequestInfo, init?: RequestInit);