mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-12 15:52:39 +02:00
refactor(v2): use correct plugin types (#4418)
This commit is contained in:
parent
1078341b22
commit
abae86f283
11 changed files with 69 additions and 80 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue