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

Invalid .d.ts file generated only in watch mode #27

Open
lwalden opened this issue Jul 10, 2019 · 0 comments
Open

Invalid .d.ts file generated only in watch mode #27

lwalden opened this issue Jul 10, 2019 · 0 comments

Comments

@lwalden
Copy link

lwalden commented Jul 10, 2019

Given the following:

<script lang="ts">
    //imports here

    interface ICustomer {
        expanded: boolean
        item: ICustomerResponse
    }

    @Component
    export default class Customers extends Vue {
        selectedCustomer: ICustomer | null = null;
    }
</script>

When I run vuetype this generates an error:
Emit Failed: - example.vue.d.ts
Error: [17,23] Public property 'selectedCustomer' of exported class has or is using private name 'ICustomer'.

But when I run vuetype --watch against the same .vue file a d.ts file is emited. The reference to ICustomer is not imported or referenced so the Typescript compiler complains.

I would expect watch mode to emit the same error as running vuetype once.

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

No branches or pull requests

1 participant