@instantdb/core
Version:
Instant's core local abstraction
18 lines • 629 B
TypeScript
import { AttrsStore, Store } from './store.ts';
import { IContainEntitiesAndLinks } from './schemaTypes.ts';
export type AttrMapping = {
attrIdMap: Record<string, string>;
refSwapAttrIds: Set<string>;
};
type TXStep = any[];
export declare function rewriteStep(attrMapping: AttrMapping, txStep: TXStep): TXStep;
type Ctx = {
stores?: (Store | undefined)[];
attrsStore: AttrsStore;
schema?: Schema;
useDateObjects?: boolean | null;
};
type Schema = IContainEntitiesAndLinks<any, any>;
export declare function transform(ctx: Ctx, inputChunks: any): TXStep[];
export {};
//# sourceMappingURL=instaml.d.ts.map