Matei Adriel
ff81096e6f
typescript(option): refactor: rewrote Some as a typecasted identity
...
typescript(option):
typescript(option): The Some function did nothing at runtime so a typecasted identity did the job
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 14:25:10 +02:00
Matei Adriel
445bab939e
typescript(option): refactor: no longer using the useless some symbol
...
typescript(option):
typescript(option): The symbol was never actually used so declaring it is good enough
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 14:24:23 +02:00
Matei Adriel
f46ef3dbf8
typescript(option): fix: Fixed the name of isNone
...
typescript(option):
typescript(option): Previously the name was isNothing bu isNone makes more sense
typescript(option):
typescript(option): BREAKING CHANGE: Changed the name of isNothing to isNone
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 14:16:32 +02:00
Matei Adriel
d02031e416
typescript(option): feat: readded the .toString() method on None
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 14:05:26 +02:00
Matei Adriel
e2e085cbc3
typescript(option): fix: fied broken brand equality
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 14:04:52 +02:00
Matei Adriel
729b901bc5
typescript(option): refactor: .then(Some) looks better than async await
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 13:53:54 +02:00
Matei Adriel
b16272a3aa
typescript(option): feat: added a bindAsync helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 13:31:56 +02:00
Matei Adriel
9236bade0c
typescript(option): feat: added a mapAsync helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 13:29:38 +02:00
Matei Adriel
467198921d
typescript(option): refactor: split heplers in different files
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 13:17:51 +02:00
Matei Adriel
d1b7740878
typescript(option): refactor: Ditched the cusom NominalType type
...
typescript(option):
typescript(option): Instead of defining my own NominalType now I use the Brand type from
typescript(option): utility types.
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 13:00:11 +02:00
Matei Adriel
aed68688a1
typescript(option): fix: fixed the exporting by misstake of Some and None
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-22 17:50:25 +02:00
Matei Adriel
92a5ecbca1
typescript(option): feat: using symbols instead of plain strings
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-22 17:48:39 +02:00
Matei Adriel
6f93885507
typescript(option): chore: fixed build process
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-22 17:38:10 +02:00
Matei Adriel
906096a5cb
typescript(option): feat: Refactored everything to use nominal types
...
typescript(option):
typescript(option): BREAKING CHANGE: flat only works on one layer but is now strongly typed | everything uses nominal types now | match has the correct parameter order
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-22 15:38:16 +02:00
Matei Adriel
15f54ea45f
typescript(option): feat: added a fromArray helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-20 14:57:46 +02:00
Matei Adriel
689c746682
typescript(option): refactor: islotated T | null in a Nullable internal type and updated the docs
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-20 14:54:40 +02:00
Matei Adriel
1f1afc0f28
typescript(option): feat: added a fromNullable helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-20 14:44:42 +02:00
Matei Adriel
aa18688c7a
typescript(option): refactor: refactored iter to use always
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-20 14:41:13 +02:00
Matei Adriel
5c3225273c
typescript(option): fix: fixed fold returning void
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 20:23:59 +02:00
Matei Adriel
1fda9e8242
typescript(option): fix: fixed the flat helper returning a non-option value
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 15:12:01 +02:00
Matei Adriel
c9cc0b0f22
typescript(option): feat: added a "flat" helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:34:48 +02:00
Matei Adriel
4ebe549c29
typescript(option): feat: added a withDefault hepler
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:20:47 +02:00
Matei Adriel
0458b226c7
typescript(option): refactor: created some internal helpers to clean some of the code
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:17:55 +02:00
Matei Adriel
1178d04079
typescript(option): feat: custom toString method for better logging
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 13:44:39 +02:00
Matei Adriel
b388fb76aa
typescript(option): feat: added the base helpers
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 13:26:22 +02:00
Matei Adriel
052584b09a
typescript(option): chore: initial setup
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 12:37:48 +02:00