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