Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly use optional parameters in declaration file test #2475

Closed
wants to merge 1 commit into from
Closed

Properly use optional parameters in declaration file test #2475

wants to merge 1 commit into from

Conversation

weswigham
Copy link

See discussion on DefinitelyTyped/DefinitelyTyped#34699 for details.

@DanielRosenwasser
Copy link

@weswigham
Copy link
Author

weswigham commented Apr 12, 2019

I dunno. I operated on the assumption that the types were correct and that the callback could legitimately be called we fewer than all its possible arguments - I'm not familiar enough with knockout's implementation to know.

@mbest
Copy link
Member

mbest commented Apr 15, 2019

The problem is actually in DefinitelyTyped's definition for createViewModel. Knockout always passes both parameters to the function.

@mbest mbest closed this Apr 15, 2019
@weswigham weswigham deleted the patch-1 branch April 15, 2019 20:59
weswigham added a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Apr 15, 2019
alesn pushed a commit to alesn/DefinitelyTyped that referenced this pull request Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants