Skip to content

Commit 87e134b

Browse files
committed
Add basic TypeScript definition
1 parent 66ba904 commit 87e134b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.1.0",
44
"description": "A loader-agnostic CSS Modules implementation, based on PostCSS",
55
"main": "lib/index.js",
6+
"types": "src/index.d.ts",
67
"directories": {
78
"test": "test"
89
},

src/index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default class Core {
2+
static values: any;
3+
static localByDefault: any;
4+
static extractImports: any;
5+
static scope: any;
6+
static defaultPlugins: any[];
7+
constructor(plugins: any[]);
8+
load(sourceString: string, sourcePath: string, trace?: any, pathFetcher?: any): { injectableSource: string, exportTokens: { [name: string]: string } };
9+
}

0 commit comments

Comments
 (0)