nuxt / modules

Discover the Nuxt modules to add any CMS, Database, UI, Auth and integrations into your Vue application.
https://nuxt.com/modules
MIT License
946 stars 260 forks source link

Move `ModuleCompatibility` Type to `@nuxt/kit` #1096

Open 2nofa11 opened 3 weeks ago

2nofa11 commented 3 weeks ago

Description

The lib/types.ts file contains a // TODO: Move to @nuxt/kit comment for the ModuleCompatibility type. Moving this type to @nuxt/kit would improve modularity and make it easier to reuse across modules.

https://github.com/nuxt/modules/blob/5346488a2d061c6508cf0df2ad08fe9d9813a9ae/lib/types.ts#L3-L12

Proposed Solution

  1. Move ModuleCompatibility type definition to @nuxt/kit.
  2. Update any references in the codebase to import ModuleCompatibility from @nuxt/kit.

Additional Context

Guidance on the preferred location within @nuxt/kit for this type would be appreciated.