-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change code to be more clearer
Signed-off-by: Eries Trisnadi <[email protected]>
- Loading branch information
1 parent
142298c
commit 45b76b0
Showing
2 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export const JAYSN_PATH = '.jaysn'; | ||
|
||
export const IMMUTABLE_TYPE = [ | ||
'List', | ||
'Map', | ||
'OrderedMap', | ||
'Set', | ||
'OrderedSet', | ||
'Stack', | ||
'Range', | ||
'Repeat', | ||
'Record', | ||
'Seq', | ||
'Collection', | ||
]; | ||
|
||
export const IMMUTABLE_READ = ['get', 'getIn']; | ||
|
||
export const IMMUTABLE_WRITE = [ | ||
'delete', | ||
'deleteIn', | ||
'merge', | ||
'mergeDeep', | ||
'mergeDeepIn', | ||
'mergeIn', | ||
'remove', | ||
'removeIn', | ||
'set', | ||
'setIn', | ||
'update', | ||
'updateIn', | ||
]; | ||
|
||
export default { | ||
JAYSN_PATH, | ||
IMMUTABLE_TYPE, | ||
IMMUTABLE_READ, | ||
IMMUTABLE_WRITE, | ||
}; |