Skip to content

Instantly share code, notes, and snippets.

@Kiwka
Last active February 24, 2019 17:18
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 Kiwka/58af12196f5c2fc2a82fcba5eb5fd64d to your computer and use it in GitHub Desktop.
Save Kiwka/58af12196f5c2fc2a82fcba5eb5fd64d to your computer and use it in GitHub Desktop.
Annotating object reusing annotation of other object
type SharedProperties = {
length: number,
name: string,
};
type NewProperties = {
age: number,
...SharedProperties,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment