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

Export functions like resolveComponent and registerRuntimeCompiler in d.ts declarations, useful for custom renderers with a TS codebase #1109

Closed
msaelices opened this issue May 3, 2020 · 2 comments

Comments

@msaelices
Copy link

msaelices commented May 3, 2020

Version

3.0.0-beta.7

Reproduction link

http://notneeded.io

Steps to reproduce

Try to import registerRuntimeCompiler like that:

export {
  registerRuntimeCompiler,
} from '@vue/runtime-core'

What is expected?

The registerRuntimeCompiler function should be accessible from any TS third-party library

What is actually happening?

Raising errors like this so we cannot build the library except for using the // @ts-ignore directive:

nativescript-vue-next/node_modules/@vue/runtime-core/dist/runtime-core"' has no exported member 'registerRuntimeCompiler'.
msaelices referenced this issue May 3, 2020
BREAKING CHANGE: Internal APIs are now excluded from type decalrations.
@rigor789
Copy link
Contributor

rigor789 commented May 4, 2020

Thank you @yyx990803!

@msaelices
Copy link
Author

thanks so much @yyx990803

@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants