Sha256: 80d86aaf9181a6d48ea11e1d997fe7e5b436eca36495cf005b9070883b3c0b7a
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
interface ModelStatus { complete: boolean; notfound?: boolean; connected: boolean; } export declare type DataAndStatus<T> = [T | null, ModelStatus]; export interface Request { api: string; params?: any; query: any; } interface ArSyncModel<T> { data: T | null; complete: boolean; connected: boolean; notfound?: boolean; release(): void; subscribe(type: any, callback: any): any; } export declare function useArSyncModelWithClass<T>(modelClass: { new <T>(req: Request, option?: any): ArSyncModel<T>; }, request: Request | null): DataAndStatus<T>; interface FetchStatus { complete: boolean; notfound?: boolean; } declare type DataAndStatusAndUpdater<T> = [T | null, FetchStatus, () => void]; export declare function useArSyncFetch<T>(request: Request | null): DataAndStatusAndUpdater<T>; export {};
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar_sync-1.0.1 | core/hooksBase.d.ts |
ar_sync-1.0.0 | core/hooksBase.d.ts |