@statezero/core
Version:
The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate
20 lines (19 loc) • 612 B
TypeScript
/**
* Check if a string contains a temporary PK template
* @param {string} str - The string to check
* @returns {boolean} - True if the string contains a TempPK tag
*/
export function containsTempPk(str: string): boolean;
/**
* Create a temporary PK with handlebars syntax
*/
export function createTempPk(uuid: any): string;
/**
* Register a real PK for a temporary PK
*/
export function setRealPk(uuid: any, realPk: any): void;
/**
* Replace all temporary PKs in an object (or string) with their real values
*/
export function replaceTempPks(payload: any): any;
export const tempPkMap: Map<any, any>;