type: improve types for useConfig

This commit is contained in:
Igor Randjelovic
2020-11-18 14:32:26 +01:00
parent c1d240d66f
commit f8cd50e495

View File

@ -33,7 +33,7 @@ export function init(_env: IWebpackEnv) {
// todo: determine default config based on deps and print **useful** error if it fails.
}
export function useConfig(config: 'angular' | 'javascript' | 'react' | 'svelte' | 'typescript' | 'vue') {
export function useConfig(config: keyof typeof defaultConfigs) {
webpackChains.push(configs[config]);
}