Skip to content

Incorrect default value for type definitions file path listed in docs #477

@joepaolicelli

Description

@joepaolicelli

The docs say the default is for the types directory to be in the rootDir, while it is actually expected to be in the sourceDir. While these are often the same in Nuxt v3 they don't have to be, and they will be different in Nuxt v4. (A starter repo from NuxtHub already makes them different, which is why I ran into this.)

Default: `./types/database.types.ts`

* @default '~/types/database.types.ts'

Apologies for creating an issue for a one character documentation change! But this caused me some confusion and brief issues, and seemed like a simple fix. I'm happy to make a PR, but wasn't sure if that would be more work for you than just a note.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions