repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: freeze empty function type
[poolifier.git]
/
src
/
utils.ts
diff --git
a/src/utils.ts
b/src/utils.ts
index 46ab5051f38ff77eb2fd06c41199bd360b306276..753219c5e37d367b8d5d83790f76847445d36663 100644
(file)
--- a/
src/utils.ts
+++ b/
src/utils.ts
@@
-1,11
+1,11
@@
/**
* An intentional empty function.
*/
/**
* An intentional empty function.
*/
-export const EMPTY_FUNCTION: () => void = () => {
+export const EMPTY_FUNCTION: () => void =
Object.freeze(
() => {
/* Intentionally empty */
/* Intentionally empty */
-}
+}
)
/**
* An intentional empty object literal.
*/
/**
* An intentional empty object literal.
*/
-export const EMPTY_LITERAL = {}
+export const EMPTY_
OBJECT_
LITERAL = {}