refactor: freeze empty function type
[poolifier.git] / src / utils.ts
index b1521c4cdfbddc0fda6b6b13293e51b082396692..753219c5e37d367b8d5d83790f76847445d36663 100644 (file)
@@ -1,6 +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_OBJECT_LITERAL = {}