11 lines
144 B
TypeScript
11 lines
144 B
TypeScript
|
// global immutability lock
|
||
|
export let LOCKED = true
|
||
|
|
||
|
export function lock() {
|
||
|
LOCKED = true
|
||
|
}
|
||
|
|
||
|
export function unlock() {
|
||
|
LOCKED = false
|
||
|
}
|