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:
Christian Flach 2021-07-08 13:09:55 +02:00 committed by GitHub
parent f316ff5cd1
commit 0acbbc3d38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,6 +247,8 @@ export interface Plugin<Content = unknown> {
getClientModules?(): string[];
extendCli?(cli: Command): void;
injectHtmlTags?({
content,
}: {
content: Content,
}): {
headTags?: HtmlTags;