Last active
June 19, 2022 21:21
-
-
Save henrik1/b33966617836db4e9a92bb6406d7a0f8 to your computer and use it in GitHub Desktop.
Omit utility type
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
| type Article = { | |
| title: string; | |
| body: string; | |
| image: string; | |
| } | |
| type ArticlePreview = Omit<Article, 'image'>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment