mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Prefer type to interface in .d.ts files
This commit is contained in:
8
ts/textsecure/Types.d.ts
vendored
8
ts/textsecure/Types.d.ts
vendored
@@ -250,7 +250,7 @@ export type CustomError = Error & {
|
||||
number?: string;
|
||||
};
|
||||
|
||||
export interface CallbackResultType {
|
||||
export type CallbackResultType = {
|
||||
successfulIdentifiers?: Array<string>;
|
||||
failoverIdentifiers?: Array<string>;
|
||||
errors?: Array<CustomError>;
|
||||
@@ -268,11 +268,11 @@ export interface CallbackResultType {
|
||||
recipients?: Record<string, Array<number>>;
|
||||
urgent?: boolean;
|
||||
hasPniSignatureMessage?: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
export interface IRequestHandler {
|
||||
export type IRequestHandler = {
|
||||
handleRequest(request: IncomingWebSocketRequest): void;
|
||||
}
|
||||
};
|
||||
|
||||
export type PniKeyMaterialType = Readonly<{
|
||||
identityKeyPair: Uint8Array;
|
||||
|
||||
Reference in New Issue
Block a user