() => string
and (): string
don't match type
#44098
Labels
Question
An issue which isn't directly actionable in code
Bug Report
Playground Link
🔎 Search Terms
() => string
and(): string
🙁 Actual behavior
A
() => string
has a non-existent property omitted can no longer be assigned to() => string
🙂 Expected behavior
It's the same exact type, nothing has changed by omitting a non-existent property.
Actual use case
https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgJIGEAWdTIN4BQyxyAFAJQBcyAzmFKAOYDcRJkdF1dDILbxeHWgB+LrXpNWAXwIEEAGzg0ayLDhAAJAPYKAJtHwDkABwCuAIwXAEyRhDDIE2UBSMkPT7SDrJtZsGoMFxBkAF4yNzCAPmQAIhhtbTjyZGU0kABPVk8SKAczKFD-R3SAeQBbYDAAHjBMkwhtGD8AgBp4oUgoOOickllZeW9fTF0DKHDkEAgAdzUQnX1oClYx5agAOmcNVeIAen3kCzg9ZGgobSgCdYntkM2ulfJmZEO7JLOLq5vx6HuNJsOGBVgQgA
The text was updated successfully, but these errors were encountered: