Matei Adriel
9989591593
typescript(option): feat: added an or helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 15:31:43 +02:00
Matei Adriel
cd4aba143c
typescript(option): feat: added an optionify helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 15:17:22 +02:00
Matei Adriel
aade2d23d7
typescript(option): test: wrote tests for isSome
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 15:07:04 +02:00
Matei Adriel
a649904d4e
typescript(option): test: wrote tests for isNone
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 15:06:19 +02:00
Matei Adriel
941263e82b
typescript(option): test: wrote tests for get
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 15:04:23 +02:00
Matei Adriel
e241784601
typescript(option): test: wrote tests for flat
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 15:01:44 +02:00
Matei Adriel
f8e501b876
typescript(option): test: wrote tests for filter
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 14:58:29 +02:00
Matei Adriel
7e2e25263c
typescript(option): ci: run tests before releasing
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-25 14:46:33 +02:00
Matei Adriel
2b681bfa7f
typescript(option): test: added tests for exists
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 16:11:20 +02:00
Matei Adriel
ca91cd20f8
typescript(option): chore: added lib to gitignore
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 16:07:00 +02:00
Matei Adriel
bf2022b56e
typescript(option): chore: WHY WASNT LIB GITIGNORED
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 16:06:26 +02:00
Matei Adriel
d905e05a19
typescript(option): test: added tests for count
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 16:05:22 +02:00
Matei Adriel
1a443ee349
typescript(option): test: added tests for bindAsync
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 16:01:51 +02:00
Matei Adriel
1fc2ef32e4
typescript(option): test: added tests for bind
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 15:59:19 +02:00
Matei Adriel
dcd55c5047
typescript(option): fix: compL was only used once so it wasn't worth the bundle sacrifice
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 15:17:09 +02:00
Matei Adriel
a32f62cfc6
typescript(option): fix: fixed the type definition for count
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 15:12:48 +02:00
Matei Adriel
0ef7baa739
typescript(option): refactor: now using @thi.ng/compose
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 15:08:36 +02:00
Matei Adriel
0abd53917b
typescript(option): fix: fixed wrong types for bind, bindAsync, and probably other helpers as well
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 15:00:29 +02:00
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
c56f734d82
typescript(option): fix: fixed tslib not beeing installed
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-23 13:35:04 +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
db6417d871
typescript(option): docs: fixed the fromNullable section not beeing in the table of contents
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-20 15:00:54 +02:00
Matei Adriel
7c143655ae
typescript(option): feat: added the fromArray function to the docs
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-20 15:00:09 +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
6bd58b46ff
typescript(option): docs: added the docs for the fromNullable helper
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-20 14:46:53 +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
04ca5c6e00
typescript(option): chore: fixed readme docs url
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 20:58:54 +02:00
Matei Adriel
64cbae4830
typescript(option): docs: started working on the docs
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 20:42:23 +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
17569d9417
typescript(option): chore: explicitly set package to public
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:27:19 +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
c226f17987
typescript(option): chore: fixed github action config... again
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:10:32 +02:00
Matei Adriel
068f6ebd50
typescript(option): chore: added a Readme
...
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:06:56 +02:00