Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
10
node_modules/next/dist/shared/lib/deep-freeze.d.ts
generated
vendored
Normal file
10
node_modules/next/dist/shared/lib/deep-freeze.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import type { DeepReadonly } from './deep-readonly';
|
||||
/**
|
||||
* Recursively freezes an object and all of its properties. This prevents the
|
||||
* object from being modified at runtime. When the JS runtime is running in
|
||||
* strict mode, any attempts to modify a frozen object will throw an error.
|
||||
*
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
|
||||
* @param obj The object to freeze.
|
||||
*/
|
||||
export declare function deepFreeze<T extends object>(obj: T): DeepReadonly<T>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue