-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Disable volar type checking for template attributes #176
Comments
You can use <template>
...
:placeholder="asAny(record.value.released)"
...
</template>
<script lang="ts">
...
const asAny = (foo: any) => foo as any;
...
</script> When vue support typescript in template(vuejs/core#1359), you can do this |
Hey, I am using JavaScript so I am not able to use an |
@neal2018 Just remove types from function in js: |
@filiperaupp-egsys did you figure out a way? I am migrating a project from Vue2 to Vue3, and as much as I like having type checks in template, I would like to disable them for now. |
@olivierlauzon85 unfortunately i didn't find a right way to resolve this. But, in my case, i could use a workaround adding type to the prop on the template, like this: <q-input>
...,
:type="(type as any)"
/> |
@filiperaupp-egsys Currently there is no way, unless we introduce additional syntax for this. If you think this feature is still needed, please open a feature request. |
I got a (wrong) typescript error for placeholder attribute.
It should be possible to tell typescript via @ts-ignore or @ts-expect-error to skip these errors
The text was updated successfully, but these errors were encountered: