\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```",[3104,3105,3106],{"name":3080,"color":3081},{"name":3059,"color":3060},{"name":3107,"color":3108},"possible regression","B90A42",32727,"Type augmentations broken in v4","2025-08-04T10:08:50Z","https://github.com/nuxt/nuxt/issues/32727",0.6656796,{"labels":3115,"number":3122,"owner":3049,"repository":3049,"state":3071,"title":3123,"updated_at":3124,"url":3125,"score":3126},[3116,3119],{"name":3117,"color":3118},"3.x","29bc7f",{"name":3120,"color":3121},"bug","d73a4a",11911,"type augmentation issues","2023-01-19T15:49:25Z","https://github.com/nuxt/nuxt/issues/11911",0.6705848,{"description":3128,"labels":3129,"number":3134,"owner":3049,"repository":3049,"state":3071,"title":3135,"updated_at":3136,"url":3137,"score":3138},"### 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",[3130,3131],{"name":3040,"color":3041},{"name":3132,"color":3133},"2.x","d4c5f9",9163,"types for ModuleContainer","2023-01-22T15:52:51Z","https://github.com/nuxt/nuxt/issues/9163",0.67125434,{"description":3140,"labels":3141,"number":3145,"owner":3049,"repository":3049,"state":3071,"title":3146,"updated_at":3147,"url":3148,"score":3149},"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```",[3142,3143,3144],{"name":3040,"color":3041},{"name":3117,"color":3118},{"name":3043,"color":3044},19606,"Type support for Node16 module resolution","2023-05-17T18:42:30Z","https://github.com/nuxt/nuxt/issues/19606",0.6758383,{"labels":3151,"number":3157,"owner":3049,"repository":3049,"state":3071,"title":3158,"updated_at":3159,"url":3160,"score":3161},[3152,3153,3154],{"name":3040,"color":3041},{"name":3117,"color":3118},{"name":3155,"color":3156},"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",3163],{},["Set"],["ShallowReactive",3166],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fzDzTRKeQMXRx9H92OpiRN7BzNCYvZXlnaZ_vXniwVf8":-1},"/nuxt/nuxt/14856"]