refactor(v2): use correct plugin types (#4418)

This commit is contained in:
Armano 2021-03-15 19:08:44 +01:00 committed by GitHub
parent 1078341b22
commit abae86f283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 69 additions and 80 deletions

View file

@ -68,10 +68,14 @@ function getInfimaCSSFile(direction) {
}.css`;
}
type PluginOptions = {
customCss?: string;
};
export default function docusaurusThemeClassic(
context,
options,
): Plugin<null, unknown> {
context: any, // TODO: LoadContext is missing some of properties
options: PluginOptions,
): Plugin<void> {
const {
siteConfig: {themeConfig},
i18n: {currentLocale, localeConfigs},