@ayonli/jsext
Version:
A JavaScript extension package for building strong and modern applications.
69 lines (68 loc) • 2.89 kB
TypeScript
import _try from "./try.ts";
import func from "./func.ts";
import wrap from "./wrap.ts";
import mixin from "./mixin.ts";
import throttle from "./throttle.ts";
import debounce from "./debounce.ts";
import queue, { Queue as _Queue } from "./queue.ts";
import lock, { Mutex as _Mutex } from "./lock.ts";
import { toAsyncIterable, readAsArray } from "./reader.ts";
import chan, { Channel as _Channel } from "./chan.ts";
import parallel from "./parallel.ts";
import run from "./run.ts";
import _example from "./example.ts";
import deprecate from "./deprecate.ts";
import pipe from "./pipe.ts";
import { isClass as _isClass, isSubclassOf as _isSubclassOf } from "./class.ts";
export * from "./types.ts";
/** @deprecated import `Queue` from `@ayonli/jsext/queue` instead. */
export declare const Queue: typeof _Queue;
/** @deprecated import `Mutex` from `@ayonli/jsext/lock` instead. */
export declare const Mutex: typeof _Mutex;
/** @deprecated import `Channel` from `@ayonli/jsext/chan` instead. */
export declare const Channel: typeof _Channel;
/**
* The entry of jsext major functions.
*/
declare const jsext: {
_try: typeof _try;
/** @deprecated use `_try` instead */
try: typeof _try;
func: typeof func;
wrap: typeof wrap;
mixin: typeof mixin;
throttle: typeof throttle;
debounce: typeof debounce;
queue: typeof queue;
lock: typeof lock;
/** @deprecated Use {@link toAsyncIterable} from `@ayonli/jsext/reader` instead. */
read: typeof toAsyncIterable;
/** @deprecated Use {@link readAsArray} from `@ayonli/jsext/reader` instead. */
readAll: typeof readAsArray;
chan: typeof chan;
parallel: typeof parallel;
run: typeof run;
/** @deprecated */
example: typeof _example;
deprecate: typeof deprecate;
pipe: typeof pipe;
/** @deprecated import `isClass` from `@ayonli/jsext/class` instead. */
isClass: typeof _isClass;
/** @deprecated import `isSubclassOf` from `@ayonli/jsext/class` instead. */
isSubclassOf: typeof _isSubclassOf;
/** @deprecated use `mixin` instead */
mixins: typeof mixin;
};
export { jsext as default, _try, func, wrap, mixin, throttle, debounce, queue, lock, chan, parallel, run, deprecate, pipe, };
/** @deprecated Use {@link toAsyncIterable} from `@ayonli/jsext/reader` instead. */
export declare const read: typeof toAsyncIterable;
/** @deprecated Use {@link readAsArray} from `@ayonli/jsext/reader` instead. */
export declare const readAll: typeof readAsArray;
/** @deprecated */
export declare const example: typeof _example;
/** @deprecated import `isClass` from `@ayonli/jsext/class` instead. */
export declare const isClass: typeof _isClass;
/** @deprecated import `isSubclassOf` from `@ayonli/jsext/class` instead. */
export declare const isSubclassOf: typeof _isSubclassOf;
/** @deprecated use `mixin` instead */
export declare const mixins: typeof mixin;