diff options
Diffstat (limited to 'src/utils/IpcEvents.ts')
-rw-r--r-- | src/utils/IpcEvents.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/IpcEvents.ts b/src/utils/IpcEvents.ts index b0a53f2..24e52b9 100644 --- a/src/utils/IpcEvents.ts +++ b/src/utils/IpcEvents.ts @@ -8,7 +8,7 @@ function strEnum<T extends Record<string, string>>(obj: T): T { o[key] = obj[key] as any; o[obj[key]] = key as any; }; - return o; + return Object.freeze(o); } export default strEnum({ |