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

vue-template-compiler module types do not express the correct optional properties #10812

emensch opened this issue Nov 8, 2019 · 0 comments


Copy link

@emensch emensch commented Nov 8, 2019



Reproduction link

Steps to reproduce

Issue is surfaced by CodeSandbox' typescript linter - just load the sandbox.

What is expected?

vue-template-compiler should accept modules with 0 or more of the following properties:

  • preTransformNode
  • transformNode
  • postTransformNode
  • genData

What is actually happening?

vue-template-compiler requires modules to have all transform functions and genData defined.

codesandbox typescript error

Ran into this while developing a custom template compiler module. It doesn't effect output or compiler functionality in any way, but it does impact developer experience.

Fixed by #10743

@posva posva added the typescript label Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.