@bnb-chain/greenfield-js-sdk
Version:
greenfield js chain and sp sdk
8 lines (7 loc) • 484 B
TypeScript
import { NodeFile, UploadFile } from '@/types/sp/Common';
import { AuthType } from '../..';
export declare const assertStringRequire: (s: string, errMsg: string) => void;
export declare const assertPrivateKey: (privateKey: string) => void;
export declare const assertAuthType: (authType: AuthType) => void;
export declare function assertFileType(file: UploadFile): file is NodeFile;
export declare function assertHttpMethod(method?: string): asserts method is 'GET' | 'POST' | 'PUT';