8 lines
162 B
JavaScript
8 lines
162 B
JavaScript
type State = {
|
|
sharedProperty: any;
|
|
} & (
|
|
| { discriminant: "FOO"; foo: any }
|
|
| { discriminant: "BAR"; bar: any }
|
|
| { discriminant: "BAZ"; baz: any }
|
|
);
|