Skip to content

Commit a3e5acf

Browse files
sapphi-redmadyankin
authored andcommitted
Fix type error caused by module augmentation
1 parent 2053d22 commit a3e5acf

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,3 @@ declare interface PostcssModulesPlugin {
5050
declare const PostcssModulesPlugin: PostcssModulesPlugin;
5151

5252
export = PostcssModulesPlugin;
53-
54-
declare module "postcss-modules/loader" {}

loader.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"types": "./index.d.ts",
1010
"default": "./build/index.js"
1111
},
12-
"./loader": "./build/loader.mjs",
12+
"./loader": {
13+
"types": "./loader.d.ts",
14+
"default": "./build/loader.mjs"
15+
},
1316
"./package.json": "./package.json"
1417
},
1518
"keywords": [

0 commit comments

Comments
 (0)