UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

1 lines 398 B
"use strict";const o=/* @__NO_SIDE_EFFECTS__ */()=>{},r=/* #__PURE__ */Promise.resolve(),e=/* #__PURE__ */new Promise(o);exports.asyncNeverFn=/* @__NO_SIDE_EFFECTS__ */()=>e,exports.asyncNoop=/* @__NO_SIDE_EFFECTS__ */()=>r,exports.falseFn=/* @__NO_SIDE_EFFECTS__ */()=>!1,exports.noop=o,exports.throwFn=/* @__NO_SIDE_EFFECTS__ */()=>{throw Error()},exports.trueFn=/* @__NO_SIDE_EFFECTS__ */()=>!0;