[Vuejs]-Vue Slots: How to provide TypeScript types about available slot names and scoped slots?

-3👍

Use Vscode and install Volar plugin may help you. Here is a screenshot of it in action.

From the Vue documentation on Tooling:

The recommended IDE setup is VSCode + the Vue Language Features (Volar) extension. The extension provides syntax highlighting, TypeScript support, and intellisense for template expressions and component props.

IDE Support on Vuejs.org

Leave a comment