@okxweb3/coin-base
Version:
A base package for @ok/coin-*
6 lines (5 loc) • 332 B
TypeScript
type ErrorType = undefined | string | Error;
declare const check: (statement: any, orError?: ErrorType) => void;
declare const checkIsDefined: <T>(something?: T | undefined, orError?: ErrorType) => T;
declare const checkIsUndefined: (something: any, orError?: ErrorType) => void;
export { check, checkIsDefined, checkIsUndefined };