Kal-Aster / vscode-riotjs

2 stars 1 forks source link

VSCode Extension to support Riot.js components.

Typescript default compiler options:

{
    "target": "ESNext",
    "module": "ESNext",
    "moduleResolution": "NodeNext",
    "allowJs": true,
    "checkJs": true,
    "strict": true
}

The type generation of the components currently supports only export default component style with the exported component wrapped in withTypes function.

<component>
    <!-- component markup -->

    <script>
        import { withTypes } from "riot";

        export default withTypes({
            // component implementation
        })
    </script>
</component>