refactor: freeze empty function type
[poolifier.git] / src / utils.ts
index 46ab5051f38ff77eb2fd06c41199bd360b306276..753219c5e37d367b8d5d83790f76847445d36663 100644 (file)
@@ -1,11 +1,11 @@
 /**
  * An intentional empty function.
  */
-export const EMPTY_FUNCTION: () => void = () => {
+export const EMPTY_FUNCTION: () => void = Object.freeze(() => {
   /* Intentionally empty */
-}
+})
 
 /**
  * An intentional empty object literal.
  */
-export const EMPTY_LITERAL = {}
+export const EMPTY_OBJECT_LITERAL = {}