modules icon indicating copy to clipboard operation
modules copied to clipboard

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

Open 2nofa11 opened this issue 1 year ago • 0 comments

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.

2nofa11 avatar Oct 25 '24 08:10 2nofa11