Skip to content

Instantly share code, notes, and snippets.

@carlrip
Created December 17, 2019 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlrip/f8619bd8415659672eccc7a8b24b6a52 to your computer and use it in GitHub Desktop.
Save carlrip/f8619bd8415659672eccc7a8b24b6a52 to your computer and use it in GitHub Desktop.
Omit type - change to base type
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