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

Make callback optional when providing context #7098

Merged
merged 2 commits into from Nov 21, 2017
Merged

Make callback optional when providing context #7098

merged 2 commits into from Nov 21, 2017

Conversation

ghost
Copy link

@ghost ghost commented Nov 21, 2017

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

TypeScript compiler complains about not assignable to parameter of type 'RenderCallback'

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

screen shot 2017-11-21 at 4 53 19 pm

sleewoo and others added 2 commits November 21, 2017 16:56
Otherwise TypeScript compiler complains about `not assignable to parameter of type 'RenderCallback'`
@yyx990803
Copy link
Member

Thanks for the PR - it actually is missing the Promise-based overload signature.

@yyx990803 yyx990803 merged commit 3554eb2 into vuejs:dev Nov 21, 2017
@ghost
Copy link
Author

ghost commented Nov 21, 2017

oh, you already added missing signature, neat 👍
blazing fast!
thanks

@ghost
Copy link
Author

ghost commented Nov 24, 2017

Please also add promise-with-context signature to Renderer interface

renderToString(vm: Vue, context: object): Promise<string>;

should i submit a new PR?
thanks

@yyx990803
Copy link
Member

done in 14e9908

@ghost
Copy link
Author

ghost commented Nov 25, 2017

thanks

lovelope pushed a commit to lovelope/vue that referenced this pull request Feb 1, 2018
…uejs#7098)

* Make callback optional when providing context

Otherwise TypeScript compiler complains about `not assignable to parameter of type 'RenderCallback'`

* Update index.d.ts
f2009 pushed a commit to f2009/vue that referenced this pull request Jan 25, 2019
…uejs#7098)

* Make callback optional when providing context

Otherwise TypeScript compiler complains about `not assignable to parameter of type 'RenderCallback'`

* Update index.d.ts
aJean pushed a commit to aJean/vue that referenced this pull request Aug 19, 2020
…uejs#7098)

* Make callback optional when providing context

Otherwise TypeScript compiler complains about `not assignable to parameter of type 'RenderCallback'`

* Update index.d.ts
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.

None yet

2 participants