@walletconnect/relay-api
Version:
7 lines • 575 B
TypeScript
export declare function assertType(obj: any, key: string, type?: string): void;
export declare function hasRequiredParams(params: any, required: string[]): boolean;
export declare function hasExactParamsLength(params: any, length: number): boolean;
export declare function hasRequiredParamsLength(params: any, minLength: number): boolean;
export declare function checkParams(params: any, required: string[], optional: string[]): boolean;
export declare function methodEndsWith(method: string, expected: string, separator?: string): boolean;
//# sourceMappingURL=misc.d.ts.map