nuxt.config.ts) to parts of the runtime code such as components and server handlers?defineNuxtModule<YourOptionsType>() so that options are type-checked in the module setup.PublicRuntimeConfig (or RuntimeConfig for server-only) interface in a index.d.ts file to include your module's options. This ensures that when you access useRuntimeConfig().public.myModule, TypeScript knows the shape of your options.