Last active
February 24, 2019 17:18
-
-
Save Kiwka/58af12196f5c2fc2a82fcba5eb5fd64d to your computer and use it in GitHub Desktop.
Annotating object reusing annotation of other object
This file contains 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 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