@stylin/ts-loader
Advanced tools
Comparing version 0.3.0 to 0.4.0-alpha.0
@@ -11,6 +11,6 @@ "use strict"; | ||
const toDTS = Handlebars.compile(template, { noEscape: true }); | ||
const defOptions = { | ||
const makeOptions = R.merge({ | ||
propsType: (name) => `${name}Props`, | ||
styledPropsType: (name) => `Styled${name}Props`, | ||
}; | ||
}); | ||
const nameFile = (path) => { | ||
@@ -23,3 +23,3 @@ const dirName = path_1.dirname(path); | ||
const onComplete = this.async(); | ||
const { propsType, styledPropsType } = R.merge(defOptions, loader_utils_1.getOptions(this)); | ||
const { propsType, styledPropsType } = makeOptions(loader_utils_1.getOptions(this)); | ||
const exports = meta.msa.map(({ componentName, className, properties, tagName, variables }) => { | ||
@@ -26,0 +26,0 @@ const parsedProperties = parser_1.parseProperty(properties); |
{ | ||
"name": "@stylin/ts-loader", | ||
"version": "0.3.0", | ||
"version": "0.4.0-alpha.0", | ||
"description": "Stylin TypeScript typing loader module for webpack", | ||
@@ -44,3 +44,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "132c38e58c7319ba7c1d45fb20358db2ac713ae4" | ||
"gitHead": "9a6d4aa09a11822768a04ece5221d1b518b23ab0" | ||
} |
@@ -5,3 +5,3 @@ # @stylin/ts-loader | ||
<img src="./typing-support.gif" width="500px"/> | ||
<img src="./typing-support.gif"/> | ||
<br/> | ||
@@ -8,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10800