@promptbook/langtail
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
15 lines (14 loc) • 543 B
TypeScript
import type { ReadonlyDeep } from 'type-fest';
/**
* @@@
*
* 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
*/