Skip to content

What is the purpose of redeclaring @docusaurus/plugin-content-docs types as @docusaurus/plugin-content-docs-types? #974

@omonk

Description

@omonk

declare module "@docusaurus/plugin-content-docs-types" {

These are available here: https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-plugin-content-docs/src/sidebars/types.ts#L21

I'm wanting to lint my types but this lib fails it because the declaration file of this plugin is not included for reason

This is my tsconfig.json

{
  "extends": "@docusaurus/tsconfig",
  "compilerOptions": {
    "baseUrl": ".",
    "lib": ["DOM", "ES2022"],
    "skipLibCheck": true,
    "target": "ES2022"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions