@e-group/redux-modules
Version:
eGroup team react-redux modules that share across projects.
9 lines (8 loc) • 590 B
TypeScript
declare type ObjectType = 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | 'null' | 'array';
/**
* Check variable has supported types(at least one of all).
* @param {any} variable
* @param {array} supportedTypes ["object", "null", "array", "boolean", "string", "bigint", "function", "number", "symbol", "undefined"]
*/
export default function supportedTypes(variable: any, supportedTypes: ObjectType[]): (boolean | "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "null" | "array")[];
export {};