Created
December 17, 2019 18:31
-
-
Save carlrip/f8619bd8415659672eccc7a8b24b6a52 to your computer and use it in GitHub Desktop.
Omit type - change to base 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 Person = { | |
id: number; | |
name: string; | |
mobile: string; | |
email: string; | |
age: number; | |
} | |
// PersonWithoutContactDetails automatically becomes { id: number; name: string; age: number;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment