1
Fork 0
Commit graph

416 commits

Author SHA1 Message Date
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
Matei Adriel 9a2ff8d174
typescript(option): chore: changed amd namespace to Option
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:04:54 +02:00
Matei Adriel ec2964ecff
typescript(option): chore: fixed github action config
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:03:26 +02:00
Matei Adriel 4cdd386295
typescript(option): chore: replaced rollup-plugin-node-resolve with @rollup/plugin-node-resolve
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 14:01:33 +02:00
Matei Adriel 8620f4b78d
typescript(option): chore: added semantic release
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-19 13:50:17 +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
Matei Adriel 377dd0430a
fsharp(ygosim): refactor: refactored some of the tribute summoning code
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-18 21:31:55 +02:00
Matei Adriel ab4bd21306
fsharp(ygosim): feat: tribtues are now sent to the graveyard
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-18 21:21:53 +02:00
Matei Adriel 99ff363652
fsharp(ygosim): feat: implemented everything from tribute summoning (except tributes don't go to the graveyard yet)
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-16 15:01:50 +02:00
Matei Adriel 79726d5ac5
fsharp(ygosim): feat: added a lot more stuff to normal summoning
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-15 16:21:09 +02:00
Matei Adriel 4b511c12d3
fsharp(ygosim): feat: added the basic structure and lenses for the CardInstance type and a toCardInstance helper for monsters
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-15 15:46:36 +02:00
Matei Adriel e5b9ed70c6
fsharp(ygosim): feat: added a helper to turn a list to indices and another one to check if a list contains an index
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-15 15:24:27 +02:00
Matei Adriel e6dc6097f9
fsharp(ygosim): feat: added a helper to create a lens from an array index
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-15 15:20:20 +02:00
Matei Adriel a2243a035b
fsharp(ygosim): feat: added a basic helper to set an element by index in a list
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-15 14:55:46 +02:00
Matei Adriel 482a5e4370
fsharp(ygosim): fix: removed debug printfns
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-15 02:31:59 +02:00
Matei Adriel 6189917e92
fsharp(ygosim): refactor: now using List.choose to remove a lot of complexity in the normal summoning stuff
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-15 02:26:52 +02:00