Skip to content

Commit 3ca7eca

Browse files
authored
fix(config): provide typescript backward compatibility (nuxt#6258)
1 parent 6a06dfb commit 3ca7eca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/config/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Dummy type definition file to provide backward compatibility
2+
// around Nuxt modules extending `@nuxt/config` for Nuxt < 2.9

packages/config/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"repository": "nuxt/nuxt.js",
55
"license": "MIT",
66
"files": [
7-
"dist"
7+
"dist",
8+
"index.d.ts"
89
],
910
"main": "dist/config.js",
11+
"typings": "index.d.ts",
1012
"dependencies": {
1113
"@nuxt/utils": "2.9.1",
1214
"consola": "^2.10.1",

0 commit comments

Comments
 (0)