mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-14 23:18:54 +00:00
Upgrade/remove outdated dependencies
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
diff --git a/node_modules/@types/backbone/index.d.ts b/node_modules/@types/backbone/index.d.ts
|
||||
index 3935075..22a4c2e 100644
|
||||
index 15d9d4b..a431841 100644
|
||||
--- a/node_modules/@types/backbone/index.d.ts
|
||||
+++ b/node_modules/@types/backbone/index.d.ts
|
||||
@@ -81,7 +81,7 @@ declare namespace Backbone {
|
||||
@@ -66,7 +66,7 @@ declare namespace Backbone {
|
||||
collection?: Collection<TModel> | undefined;
|
||||
}
|
||||
|
||||
|
||||
- type CombinedModelConstructorOptions<E, M extends Model<any, any, E> = Model> = ModelConstructorOptions<M> & E;
|
||||
+ type CombinedModelConstructorOptions<E, M extends Model<any, any, E> = Model<any, any, E>> = ModelConstructorOptions<M> & E;
|
||||
|
||||
|
||||
interface ModelSetOptions extends Silenceable, Validable {}
|
||||
|
||||
@@ -219,7 +219,7 @@ declare namespace Backbone {
|
||||
|
||||
@@ -204,7 +204,7 @@ declare namespace Backbone {
|
||||
*/
|
||||
static extend(properties: any, classProperties?: any): any;
|
||||
|
||||
|
||||
- attributes: Partial<T>;
|
||||
+ attributes: T;
|
||||
changed: Partial<T>;
|
||||
cidPrefix: string;
|
||||
cid: string;
|
||||
@@ -235,7 +235,7 @@ declare namespace Backbone {
|
||||
@@ -220,7 +220,7 @@ declare namespace Backbone {
|
||||
* That works only if you set it in the constructor or the initialize method.
|
||||
*/
|
||||
defaults(): Partial<T>;
|
||||
@@ -28,22 +28,22 @@ index 3935075..22a4c2e 100644
|
||||
+ id: string;
|
||||
idAttribute: string;
|
||||
validationError: any;
|
||||
|
||||
@@ -266,7 +266,7 @@ declare namespace Backbone {
|
||||
|
||||
@@ -251,7 +251,7 @@ declare namespace Backbone {
|
||||
* return super.get("name");
|
||||
* }
|
||||
*/
|
||||
- get<A extends _StringKey<T>>(attributeName: A): T[A] | undefined;
|
||||
+ get<A extends _StringKey<T>>(attributeName: A): T[A];
|
||||
|
||||
|
||||
/**
|
||||
* For strongly-typed assignment of attributes, use the `set` method only privately in public setter properties.
|
||||
@@ -300,7 +300,7 @@ declare namespace Backbone {
|
||||
@@ -285,7 +285,7 @@ declare namespace Backbone {
|
||||
previousAttributes(): Partial<T>;
|
||||
save(attributes?: Partial<T> | null, options?: ModelSaveOptions): JQueryXHR;
|
||||
unset(attribute: _StringKey<T>, options?: Silenceable): this;
|
||||
- validate(attributes: Partial<T>, options?: any): any;
|
||||
+ validate(attributes: T, options?: any): any;
|
||||
private _validate(attributes: Partial<T>, options: any): boolean;
|
||||
|
||||
|
||||
// mixins from underscore
|
||||
@@ -1,8 +1,8 @@
|
||||
diff --git a/node_modules/@types/express/index.d.ts b/node_modules/@types/express/index.d.ts
|
||||
index 8427f02..2b4698f 100755
|
||||
index b92b15c..6536d9f 100644
|
||||
--- a/node_modules/@types/express/index.d.ts
|
||||
+++ b/node_modules/@types/express/index.d.ts
|
||||
@@ -55,7 +55,7 @@ declare namespace e {
|
||||
@@ -47,7 +47,7 @@ declare namespace e {
|
||||
/**
|
||||
* This is a built-in middleware function in Express. It serves static files and is based on serve-static.
|
||||
*/
|
||||
@@ -1,14 +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
|
||||
index f95f9c1..72b3814 100644
|
||||
--- 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');
|
||||
@@ -3,7 +3,8 @@
|
||||
import FormData = require("form-data");
|
||||
import { RequestOptions } from "http";
|
||||
import { URLSearchParams, URL } from "url";
|
||||
import { URL, URLSearchParams } from "url";
|
||||
-import { AbortSignal } from "./externals";
|
||||
+// Avoid type conflicts!
|
||||
+// import { AbortSignal } from "./externals";
|
||||
+// Avoid type conflicts!
|
||||
|
||||
export class Request extends Body {
|
||||
declare class Request extends Body {
|
||||
constructor(input: RequestInfo, init?: RequestInit);
|
||||
@@ -1,8 +1,8 @@
|
||||
diff --git a/node_modules/zod/lib/types.d.ts b/node_modules/zod/lib/types.d.ts
|
||||
index 0ece6e8..57bbe86 100644
|
||||
index e5314e6..4c54da2 100644
|
||||
--- a/node_modules/zod/lib/types.d.ts
|
||||
+++ b/node_modules/zod/lib/types.d.ts
|
||||
@@ -56,7 +56,9 @@ export declare abstract class ZodType<Output = any, Def extends ZodTypeDef = Zod
|
||||
@@ -59,7 +59,9 @@ export declare abstract class ZodType<Output = any, Def extends ZodTypeDef = Zod
|
||||
};
|
||||
_parseSync(input: ParseInput): SyncParseReturnType<Output>;
|
||||
_parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
|
||||
Reference in New Issue
Block a user