Created
February 25, 2019 10:07
-
-
Save moltar/97ffb879c6939ae5a7be6598b675db87 to your computer and use it in GitHub Desktop.
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
interface A { | |
foo: number | |
} | |
interface B { | |
bar: number | |
} | |
type C = A | B | |
const c: C = { | |
foo: 1, | |
bar: 2 | |
} | |
// I want C to be A ORRRR B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment