This repository was archived by the owner on Oct 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const filenameToTypingsFilename = (filename) => {
18
18
return path . join ( dirName , `${ baseName } .d.ts` ) ;
19
19
} ;
20
20
21
- export const generateInterface = ( cssModuleKeys , filename , indent ) => {
21
+ export const generateGenericExportInterface = ( cssModuleKeys , filename , indent ) => {
22
22
const interfaceName = filenameToInterfaceName ( filename ) ;
23
23
const interfaceProperties = cssModuleToTypescriptInterfaceProperties ( cssModuleKeys , indent ) ;
24
24
return (
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import cssLoader from 'css-loader';
2
2
import cssLocalsLoader from 'css-loader/locals' ;
3
3
import loaderUtils from 'loader-utils' ;
4
4
import {
5
- generateInterface ,
5
+ generateGenericExportInterface ,
6
6
filenameToTypingsFilename ,
7
7
} from './cssModuleToInterface' ;
8
8
import * as persist from './persist' ;
@@ -32,7 +32,7 @@ module.exports = function(input) {
32
32
33
33
let cssModuleKeys = Object . keys ( this . exec ( content , this . resource ) ) ;
34
34
35
- const cssModuleInterface = generateInterface ( cssModuleKeys , requestedResource ) ;
35
+ const cssModuleInterface = generateGenericExportInterface ( cssModuleKeys , requestedResource ) ;
36
36
persist . writeToFileIfChanged ( cssModuleInterfaceFilename , cssModuleInterface ) ;
37
37
// mock async step 3 - make `async` return the actual callback again before calling the 'real' css-loader
38
38
delegateToCssLoader ( this , input , callback ) ;
You can’t perform that action at this time.
0 commit comments