UNPKG

@baqhub/sdk

Version:

The official JavaScript SDK for the BAQ federated app platform.

18 lines (17 loc) 512 B
import { AnyRecord, NoContentRecord, RecordId } from "./record.js"; export type RecordKey<T extends AnyRecord | NoContentRecord> = string & { _type?: T; }; declare function tryParseKey(key: string): { entity: string; recordId: string; } | undefined; declare function keyToComponents<T extends AnyRecord>(key: RecordKey<T>): { entity: string; recordId: RecordId<T>; }; export declare const RecordKey: { tryParse: typeof tryParseKey; toComponents: typeof keyToComponents; }; export {};