Prefer type to interface in .d.ts files

This commit is contained in:
Evan Hahn
2022-08-30 21:24:04 +00:00
committed by GitHub
parent 9d7eaa003f
commit 39354b11b7
5 changed files with 27 additions and 27 deletions

View File

@@ -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;