\n\nHowever, in v4, only the base interface is considered:\n\n\u003Cimg width=\"305\" height=\"121\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0d52e563-e507-4f53-9e34-a51086879f76\" />\n\n### Additional context\n\nThe v4 projects are using the new default tsconfig\n```json\n{\n // https://nuxt.com/docs/guide/concepts/typescript\n \"files\": [],\n \"references\": [\n {\n \"path\": \"./.nuxt/tsconfig.app.json\"\n },\n {\n \"path\": \"./.nuxt/tsconfig.server.json\"\n },\n {\n \"path\": \"./.nuxt/tsconfig.shared.json\"\n },\n {\n \"path\": \"./.nuxt/tsconfig.node.json\"\n }\n ]\n}\n```\n\n### Logs\n\n```shell-script\n\n```",[3254,3255,3256],{"name":3230,"color":3231},{"name":3209,"color":3210},{"name":3257,"color":3258},"possible regression","B90A42",32727,"Type augmentations broken in v4","2025-08-04T10:08:50Z","https://github.com/nuxt/nuxt/issues/32727",0.6656796,{"labels":3265,"number":3272,"owner":3199,"repository":3199,"state":3221,"title":3273,"updated_at":3274,"url":3275,"score":3276},[3266,3269],{"name":3267,"color":3268},"3.x","29bc7f",{"name":3270,"color":3271},"bug","d73a4a",11911,"type augmentation issues","2023-01-19T15:49:25Z","https://github.com/nuxt/nuxt/issues/11911",0.6705848,{"description":3278,"labels":3279,"number":3284,"owner":3199,"repository":3199,"state":3221,"title":3285,"updated_at":3286,"url":3287,"score":3288},"### Is your feature request related to a problem? Please describe.\r\n\r\nI'm making Nuxt.js module with TypeScript. However, `@nuxt/types` doesn't declare ModuleContainer related methods other than `extendBuild`.\r\n\r\nhttps://github.com/nuxt/nuxt.js/blob/dev/packages/types/config/module.d.ts#L22-L27\r\n\r\nRefs: https://nuxtjs.org/docs/2.x/internals-glossary/internals-module-container\r\n\r\n### Describe the solution you'd like\r\n\r\nMy tentative solution is like this:\r\n\r\n```ts\r\nimport { Module } from '@nuxt/types/config/module'\r\nimport { NuxtRouteConfig } from '@nuxt/types/config/router'\r\n\r\ninterface Options {\r\n foo?: string\r\n}\r\n\r\ntype ExtendRoutesFunction = (routes: NuxtRouteConfig[], resolve: (...pathSegments: string[]) => string) => void\r\n\r\ndeclare module '@nuxt/types/config/module' {\r\n interface ModuleThis {\r\n extendRoutes(fn: ExtendRoutesFunction): void\r\n }\r\n}\r\n\r\nconst module: Module\u003COptions> = function () {\r\n this.extendRoutes((routes, resolve) => {\r\n routes.push({\r\n name: 'sample',\r\n path: '/sample',\r\n chunkName: 'sample',\r\n component: resolve(__dirname, './../page/sample.vue')\r\n })\r\n })\r\n}\r\n\r\nexport default module\r\n```\r\n\r\nI also made declaration like that: \r\nhttps://github.com/kawahara/nuxt.js/commit/c819cbea7ef347feb2899c101a05ea04b59e0dea",[3280,3281],{"name":3190,"color":3191},{"name":3282,"color":3283},"2.x","d4c5f9",9163,"types for ModuleContainer","2023-01-22T15:52:51Z","https://github.com/nuxt/nuxt/issues/9163",0.67125434,{"description":3290,"labels":3291,"number":3295,"owner":3199,"repository":3199,"state":3221,"title":3296,"updated_at":3297,"url":3298,"score":3299},"Follow on from https://github.com/nuxt/nuxt/issues/18426.\r\n\r\nIn order to have full support for Node16 format are:\r\n - [x] the output format of our internal runtime directories, which will need to be fixed upstream in https://github.com/unjs/mkdist and https://github.com/unjs/unbuild, for example in https://github.com/unjs/mkdist/pull/134\r\n - [ ] emitted type declaration files - e.g. `imports.d.ts` upstream in https://github.com/unjs/unimport (cc: @antfu)\r\n - [ ] our generated aliases in `~/.nuxt/tsconfig.json` need to include a file extension and `/index` path\r\n - [ ] there may be more locations in the codebase and in particular in runtime directories where we rely on implied `/index` paths\r\n - [ ] need to either default to `type: module` in starter `package.json` or otherwise provide recommendations on importing in CJS context\r\n\r\n**For testing**:\r\n\r\n```ts\r\nexport default defineNuxtConfig({\r\n typescript: {\r\n tsConfig: {\r\n compilerOptions: {\r\n moduleResolution: 'Node16'\r\n }\r\n }\r\n }\r\n})\r\n```",[3292,3293,3294],{"name":3190,"color":3191},{"name":3267,"color":3268},{"name":3193,"color":3194},19606,"Type support for Node16 module resolution","2023-05-17T18:42:30Z","https://github.com/nuxt/nuxt/issues/19606",0.6758383,{"labels":3301,"number":3307,"owner":3199,"repository":3199,"state":3221,"title":3308,"updated_at":3309,"url":3310,"score":3311},[3302,3303,3304],{"name":3190,"color":3191},{"name":3267,"color":3268},{"name":3305,"color":3306},"dx","C39D69",13383,"expose app and app types as `nuxt3/app`","2023-01-19T16:54:17Z","https://github.com/nuxt/nuxt/issues/13383",0.6773279,["Reactive",3313],{},["Set"],["ShallowReactive",3316],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fzDzTRKeQMXRx9H92OpiRN7BzNCYvZXlnaZ_vXniwVf8":-1},"/nuxt/nuxt/14856"]