Repository navigation
Mark parameters in knockout test as optional - #34699
Conversation
|
@weswigham Thank you for submitting this PR! 🔔 @borisyankov @Igorbek @moonpyk @EnableSoftware @BenjaminEckardt @ffMathy @ltlombardi @Retsam - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
|
LGTM. FYI the latest minor version of knockout packages their types, and it looks like they have the same issue over there. It'd be great if you'd also open the same change as PR against their repo. |
|
A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped! |
|
The problem is actually that the type definition for |
Following discussion about #34699 on knockout/knockout#2475
Following discussion about DefinitelyTyped#34699 on knockout/knockout#2475
Found while working on microsoft/TypeScript#30853 - the cb as written required
ComponentInfoto be present, but the signature it's being assigned to has it as optional. Prior to the linked PR, the union withKnockoutComponentTypes.EmptyConfighid this bug, as pretty much anything is assignable to the empty config.