UNPKG

util-array-object-or-both

Version:

Validate and normalise user choice: array, object or both?

14 lines (12 loc) 286 B
declare const version: string; interface Opts { msg: string; optsVarName: string; } declare const defaults: Opts; declare function arrObjOrBoth( str: string, opts?: Partial<Opts>, ): "array" | "object" | "any"; export { arrObjOrBoth, defaults, version }; export type { Opts };