Skip to content

Global option utils#12

Merged
dbidwell94 merged 4 commits into
masterfrom
global_option_utils
Aug 27, 2025
Merged

Global option utils#12
dbidwell94 merged 4 commits into
masterfrom
global_option_utils

Conversation

@dbidwell94

Copy link
Copy Markdown
Owner

This PR adds global (or static if you will) Option utils to the exported option object. This will include 2 functions, isNone and isSome, which can be called with either an Option or SerializableOption as a param. Full typing works with this function just like the function on the Option object itself. This is helpful if you want to validate a SerializableOption without converting back into an Option (i.e. keeping a SerializableOption in Redux without converting it for later use)

@dbidwell94

Copy link
Copy Markdown
Owner Author

Coverage after merging global_option_utils into master

100.00%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.tsN/A100%100%
src.option
   index.tsN/A100%100%
src.result
   index.tsN/A100%100%

@dbidwell94

Copy link
Copy Markdown
Owner Author

Coverage after merging global_option_utils into master

100.00%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.tsN/A100%100%
src.option
   index.tsN/A100%100%
src.result
   index.tsN/A100%100%

@dbidwell94 dbidwell94 merged commit a44145d into master Aug 27, 2025
1 check passed
@dbidwell94 dbidwell94 deleted the global_option_utils branch September 3, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant