UNPKG

@pkt/utils

Version:

44 lines (39 loc) 647 B
type SafeAny = any; /** * 相互比较 * @return boolean */ type CompareWith = (o1: SafeAny, o2: SafeAny) => boolean; /** * 输入 Boolean */ type BooleanInput = boolean | string | undefined | null; /** * 输入 Number */ type NumberInput = number | string | undefined | null; /** * 字典 * * { * k:v * } */ interface Dictionary<T = SafeAny> { [key: string]: T; } /** * 字典 * * { * k:{ * k:v * } * } */ interface DictionaryIncludes<T = SafeAny> { [key: string]: { [key: string]: T; }; } export type { BooleanInput, CompareWith, Dictionary, DictionaryIncludes, NumberInput, SafeAny };