@onekeyfe/hd-shared
Advanced tools
Comparing version 0.3.30 to 0.3.31
@@ -1,2 +0,2 @@ | ||
export declare type Deferred<T, I = any, D = any> = { | ||
export type Deferred<T, I = any, D = any> = { | ||
id?: I; | ||
@@ -3,0 +3,0 @@ data?: D; |
@@ -6,7 +6,7 @@ export interface IHardwareError { | ||
} | ||
declare type ValueOf<P extends object> = P[keyof P]; | ||
declare type HardwareErrorCodeMessageMapping = { | ||
type ValueOf<P extends object> = P[keyof P]; | ||
type HardwareErrorCodeMessageMapping = { | ||
[P in ValueOf<typeof HardwareErrorCode>]: string; | ||
}; | ||
declare type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>; | ||
type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>; | ||
export declare class HardwareError extends Error { | ||
@@ -92,3 +92,3 @@ errorCode: ErrorCodeUnion; | ||
export declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping; | ||
export declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string | undefined, params?: any) => HardwareError; | ||
export declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string, params?: any) => HardwareError; | ||
export declare const serializeError: (payload: any) => any; | ||
@@ -95,0 +95,0 @@ export declare const CreateErrorByMessage: (message: string) => HardwareError; |
@@ -1,2 +0,2 @@ | ||
declare type Deferred<T, I = any, D = any> = { | ||
type Deferred<T, I = any, D = any> = { | ||
id?: I; | ||
@@ -15,7 +15,7 @@ data?: D; | ||
} | ||
declare type ValueOf<P extends object> = P[keyof P]; | ||
declare type HardwareErrorCodeMessageMapping = { | ||
type ValueOf<P extends object> = P[keyof P]; | ||
type HardwareErrorCodeMessageMapping = { | ||
[P in ValueOf<typeof HardwareErrorCode>]: string; | ||
}; | ||
declare type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>; | ||
type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>; | ||
declare class HardwareError extends Error { | ||
@@ -101,3 +101,3 @@ errorCode: ErrorCodeUnion; | ||
declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping; | ||
declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string | undefined, params?: any) => HardwareError; | ||
declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string, params?: any) => HardwareError; | ||
declare const serializeError: (payload: any) => any; | ||
@@ -104,0 +104,0 @@ declare const CreateErrorByMessage: (message: string) => HardwareError; |
{ | ||
"name": "@onekeyfe/hd-shared", | ||
"version": "0.3.30", | ||
"version": "0.3.31", | ||
"description": "Hardware SDK's shared tool library", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "269ee367141ae2186a9a63d1d89e9f4c70428623" | ||
"gitHead": "75a2c413110960f086b1d3e3ac81134711c0be9f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38727