download
raw
801 Bytes
declare type Tuple<T = any> = [T] | T[];
declare type Await<T> = T extends Promise<infer V> ? V : never;
declare type Config = {
lifespan?: number;
equal?: (a: any, b: any) => boolean;
};
declare const suspend: <Keys extends Tuple<unknown>, Fn extends (...keys: Keys) => Promise<unknown>>(fn: Promise<unknown> | Fn, keys?: Keys | undefined, config?: Config | undefined) => Await<ReturnType<Fn>>;
declare const preload: <Keys extends Tuple<unknown>, Fn extends (...keys: Keys) => Promise<unknown>>(fn: Promise<unknown> | Fn, keys?: Keys | undefined, config?: Config | undefined) => undefined;
declare const peek: <Keys extends Tuple<unknown>>(keys: Keys) => unknown;
declare const clear: <Keys extends Tuple<unknown>>(keys?: Keys | undefined) => void;
export { suspend, clear, preload, peek };

Xet Storage Details

Size:
801 Bytes
·
Xet hash:
7cf20d579bded5f6054c02a5cd9a3910b0d545e9c835ed7c469278e76cee316d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.