Skip to content

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
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.

2 participants