mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-25 23:17:06 +02:00
fix(v2): Invalid type definition for injectHtmlTags (#5124)
This was likely a typo, and resulted in the following error when using Typescript strict mode: node_modules/@docusaurus/types/src/index.d.ts(250,14): error TS7031: Binding element 'Content' implicitly has an 'any' type.
This commit is contained in:
parent
f316ff5cd1
commit
0acbbc3d38
1 changed files with 2 additions and 0 deletions
2
packages/docusaurus-types/src/index.d.ts
vendored
2
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -247,6 +247,8 @@ export interface Plugin<Content = unknown> {
|
||||||
getClientModules?(): string[];
|
getClientModules?(): string[];
|
||||||
extendCli?(cli: Command): void;
|
extendCli?(cli: Command): void;
|
||||||
injectHtmlTags?({
|
injectHtmlTags?({
|
||||||
|
content,
|
||||||
|
}: {
|
||||||
content: Content,
|
content: Content,
|
||||||
}): {
|
}): {
|
||||||
headTags?: HtmlTags;
|
headTags?: HtmlTags;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue