UNPKG

@byloth/core

Version:

An unopinionated collection of useful functions and classes that I use widely in all my projects. 🔧

112 lines (104 loc) • 2.1 kB
export const VERSION = "2.2.2"; export type { Constructor, Interval, Timeout, ValueOf } from "./core/types.js"; export { isBrowser, isNode, isWorker } from "./helpers.js"; export { AggregatedIterator, AggregatedAsyncIterator, CallableObject, CallbackChain, Clock, Countdown, DeferredPromise, EnvironmentException, Exception, FatalErrorException, FileException, FileExistsException, FileNotFoundException, GameLoop, JSONStorage, KeyException, MapView, NotImplementedException, NetworkException, PermissionException, PromiseQueue, Publisher, RangeException, ReducedIterator, ReferenceException, RuntimeException, SetView, SmartIterator, SmartAsyncIterator, SmartPromise, SwitchableCallback, TimeoutException, TimedPromise, TypeException, ValueException } from "./models/index.js"; export type { AsyncGeneratorFunction, AsyncIteratee, AsyncIteratorLike, AsyncKeyedIteratee, AsyncKeyedReducer, AsyncReducer, Callback, CallbackMap, FulfilledHandler, GeneratorFunction, InternalsEventsMap, Iteratee, IteratorLike, JSONArray, JSONObject, JSONValue, KeyedIteratee, KeyedReducer, KeyedTypeGuardPredicate, MaybeAsyncKeyedIteratee, MaybeAsyncKeyedReducer, MaybeAsyncGeneratorFunction, MaybeAsyncIteratee, MaybeAsyncIteratorLike, MaybeAsyncReducer, MaybePromise, PromiseExecutor, PromiseRejecter, PromiseResolver, Publishable, ReadonlyMapView, ReadonlySetView, Reducer, RejectedHandler, Subscribable, TypeGuardPredicate, WildcardEventsMap } from "./models/types.js"; export { average, capitalize, chain, count, Curve, delay, dateDifference, dateRange, dateRound, TimeUnit, enumerate, getWeek, hash, loadScript, nextAnimationFrame, Random, range, shuffle, sum, unique, WeekDay, yieldToEventLoop, zip } from "./utils/index.js";