Skip to content

Definition of useHead is missing options argument #785

Description

@tdekoning

🐛 The bug

The useHead composable is overridden in this repository, and overrides the definition of https://github.com/unjs/unhead/blob/0285304d03959c5149e76652a5cef38fd8989338/packages/vue/src/composables.ts#L3. However, the overridden definition is missing the optional options argument.

This leads to typescript issues when combining web and app code in one project if the web project uses these options.

Example usage:

useHead({title: 'House Tabs',},{mode: 'client'});

🛠️ To reproduce

https://stackblitz.com/edit/github-kyihkgkb?file=pages%2Ftabs.vue,package.json

🌈 Expected behaviour

I expect TypeScript to allow the use of options, even though it is ignored by the implementation.

ℹ️ Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions