Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
omonk opened this issue Sep 19, 2024 · 1 comment

Comments

@omonk
Copy link
Contributor

omonk commented Sep 19, 2024

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"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@omonk and others