Skip to content

Instantly share code, notes, and snippets.

@moltar
Created February 25, 2019 10:07
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 moltar/97ffb879c6939ae5a7be6598b675db87 to your computer and use it in GitHub Desktop.
Save moltar/97ffb879c6939ae5a7be6598b675db87 to your computer and use it in GitHub Desktop.
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