We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb45b0 commit 4d8b3d0Copy full SHA for 4d8b3d0
index.d.ts
@@ -0,0 +1,10 @@
1
+interface Options {
2
+ context: string,
3
+ hashPrefix: string,
4
+}
5
+
6
+type Generator = (localName: string, filepath: string) => string;
7
8
+declare function createGenerator(pattern: string, options?: Partial<Options>): Generator;
9
10
+export = createGenerator;
package.json
@@ -3,6 +3,7 @@
"version": "1.0.2",
"description": "Helper for building generic names, similar to webpack",
"main": "index.js",
+ "types": "index.d.ts",
"scripts": {
"test": "tape test/*.js"
},
0 commit comments