4 lines
143 B
TypeScript
4 lines
143 B
TypeScript
|
type FunctionType = () => any;
|
||
|
type DoesntWork = { a: number, c: number } | FunctionType;
|
||
|
|
||
|
let doesntWork: DoesntWork = { a: 1, c: 2, d: 3 }
|