Created
January 16, 2026 04:25
-
-
Save pfftdammitchris/c98f4636e700ac492d3d10f649b09cc1 to your computer and use it in GitHub Desktop.
The Power of TypeScript's Satisfies Operator - snippet-7.ts
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
| // Best of both worlds | |
| const config = { | |
| timeout: 5000, | |
| retries: 3, | |
| } satisfies Partial<Config> | |
| // config.timeout is `5000`, and we know it matches Config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment