Quantumbraid's picture
download
raw
524 Bytes
type ChangeFn = () => void;
type UnsubscribeFn = () => void;
type ActionFn<T> = (this: T, ...args: any[]) => T | void;
type StoreActions<Key extends string, T> = Record<Key, ActionFn<T>>;
export interface Store<T, ActionKey extends string> {
getSnapshot(): T;
subscribe(onChange: ChangeFn): UnsubscribeFn;
dispatch(action: ActionKey, ...args: any[]): void;
}
export declare function createStore<T, ActionKey extends string>(initial: () => T, actions: StoreActions<ActionKey, T>): Store<T, ActionKey>;
export {};

Xet Storage Details

Size:
524 Bytes
·
Xet hash:
0661401c303b29e2d6fd9b7bf2d2b0cd401f987f4b35d9dc20765d3692a3e411

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