add config types

This commit is contained in:
Labhansh Agrawal 2020-04-27 19:02:08 +05:30 committed by Benjamin Staneck
parent b099bb1218
commit 6debd1e7f2
11 changed files with 147 additions and 58 deletions

View file

@ -363,10 +363,10 @@ const loadModules = () => {
})
.filter((mod: any) => Boolean(mod));
const deprecatedPlugins: Record<string, any> = plugins.getDeprecatedConfig();
const deprecatedPlugins = plugins.getDeprecatedConfig();
Object.keys(deprecatedPlugins).forEach((name) => {
const {css} = deprecatedPlugins[name];
if (css) {
if (css.length > 0) {
console.warn(`Warning: "${name}" plugin uses some deprecated CSS classes (${css.join(', ')}).`);
}
});