1
0
Fork 0
js-utils/src/index.ts

108 lines
1.7 KiB
TypeScript

export { ChildProcessError } from './error/ChildProcessError.js';
export { InvalidArgumentError } from './error/InvalidArgumentError.js';
export { MissingKeyError } from './error/MissingKeyError.js';
export { NotFoundError } from './error/NotFoundError.js';
export { NotImplementedError } from './error/NotImplementedError.js';
export { TimeoutError } from './error/TimeoutError.js';
export {
mergeArray,
mergeArrays,
hasItems,
ensureArray,
isArray,
isEmpty,
filterZip,
lengthOf,
toArray,
} from './Array.js';
export {
ArrayMapper,
ArrayMapperOptions,
} from './ArrayMapper.js';
export {
defer,
deferUntil,
deferValue,
timeout,
waitFor,
} from './Async.js';
export {
AllowedBufferEncoding,
concat,
encode,
} from './Buffer.js';
export {
Checklist,
ChecklistMode,
ChecklistOptions,
} from './Checklist.js';
export {
ChildOptions,
ChildResult,
ChildSpawner,
childResult,
waitForChild,
writeInput,
writeValue,
} from './Child.js';
export {
isDebug
} from './Env.js';
export {
getTestLogger,
spyLogger,
} from './Logger.js';
export {
Dict,
MapLike,
entriesOf,
getHead,
getHeadOrDefault,
getOrDefault,
makeDict,
makeMap,
mergeMap,
mustGet,
normalizeMap,
pairsToMap,
pushMergeMap,
setOrPush,
} from './Map.js';
export {
sum,
} from './Math.js';
export {
Maybe,
None,
defaultWhen,
doesExist,
isNone,
isSome,
mustCoalesce,
mustDefault,
mustExist,
mustFind,
removeNone,
} from './Maybe.js';
export {
Nil,
Optional,
isNil,
} from './Optional.js';
export {
constructorName,
getConstructor,
getMethods,
} from './Reflect.js';
export {
SIGNAL_RELOAD,
SIGNAL_RESET,
SIGNAL_STOP,
signal,
} from './Signal.js';
export {
leftPad,
trim,
} from './String.js';