UNPKG

@platform/cell.typesystem

Version:

The 'strongly typed sheets' system of the CellOS.

30 lines (29 loc) 1.4 kB
import { fromClient } from './fetch.fromClient'; import { fromFuncs } from './fetch.fromFuncs'; export declare const fetcher: { fromClient: typeof fromClient; fromFuncs: typeof fromFuncs; stub: { fetch: (data: { defs: { [ns: string]: import("@platform/cell.types").ITypeDefPayload; }; cells?: import("@platform/cell.types").ICellMap<import("@platform/cell.types").ICellData<import("@platform/cell.types").ICellProps>> | undefined; before?: ((args: { method: "getNs" | "getColumns" | "getCells"; args: any; }) => void) | undefined; }) => import("./fetch.stub").IStubFetcher; instance: <T>(args: { instance: string; implements: string; defs: { [ns: string]: import("@platform/cell.types").ITypeDefPayload; }; rows?: T[] | undefined; cells?: import("@platform/cell.types").ICellMap<import("@platform/cell.types").ICellData<import("@platform/cell.types").ICellProps>> | undefined; cache?: import("@platform/cache").IMemoryCache<string> | undefined; getTypeDef?: ((defs: import("@platform/cell.types").INsTypeDef[]) => import("@platform/cell.types").INsTypeDef) | undefined; }) => Promise<import("./fetch.stub").IStubFetcher>; }; };