Created
June 23, 2021 21:14
-
-
Save captain-yossarian/48d21b9b3d7e1c3245a4c91c309ff741 to your computer and use it in GitHub Desktop.
Option
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
/** | |
* Shamelessly stolen from Rust | |
*/ | |
type None = null | undefined; | |
type Some<T> = T | |
type Option<T> = Some<T> | None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment