@platform/cell.typesystem
Version:
The 'strongly typed sheets' system of the CellOS.
47 lines (46 loc) • 2.43 kB
TypeScript
import { TypeCache } from './TypeSystem.cache';
import { TypeClient, TypeDefault, TypeTarget, TypeValue, TypeScript } from './TypeSystem.core';
import { ChangeMonitor, TypedSheet, SheetPool } from './TypeSystem.sheet';
import { objectToCells } from './util';
export declare class TypeSystem {
static Client: typeof TypeClient;
static Cache: typeof TypeCache;
static Target: typeof TypeTarget;
static Value: typeof TypeValue;
static Default: typeof TypeDefault;
static Sheet: typeof TypedSheet;
static Pool: typeof SheetPool;
static ChangeMonitor: typeof ChangeMonitor;
static client: typeof TypeClient.client;
static fetcher: {
fromClient: typeof import("./TypeSystem.fetch/fetch.fromClient").fromClient;
fromFuncs: typeof import("./TypeSystem.fetch/fetch.fromFuncs").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("./TypeSystem.fetch/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("./TypeSystem.fetch/fetch.stub").IStubFetcher>;
};
};
static objectToCells: typeof objectToCells;
static def: () => import("@platform/cell.types").ITypeBuilder;
static typescript: typeof import("./TypeSystem.core/TypeClient/TypeClient.fn.typescript").typescript;
static TypeScript: typeof TypeScript;
}