UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

15 lines (14 loc) 603 B
import type { ReadonlyDeep } from 'type-fest'; /** * Freezes the given object and all its nested objects recursively * * Note: `$` is used to indicate that this function is not a pure function - it mutates given object * Note: This function mutates the object and returns the original (but mutated-deep-freezed) object * * @returns The same object as the input, but deeply frozen * @public exported from `@promptbook/utils` */ export declare function $deepFreeze<TObject>(objectValue: TObject): ReadonlyDeep<TObject>; /** * TODO: [🧠] Is there a way how to meaningfully test this utility */