Created
January 8, 2023 15:34
-
-
Save guiseek/52c2491c35cd03e52947f9b7f4ecb249 to your computer and use it in GitHub Desktop.
That As
This file contains hidden or 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
export const that = <I>(value: I) => ({ | |
as<O>() { | |
return value as unknown as O | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment