PaloAltoNetworks / docusaurus-openapi-docs

🦝 OpenAPI plugin for generating API reference docs in Docusaurus v3.
https://docusaurus-openapi.tryingpan.dev
MIT License
719 stars 239 forks source link

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

Open omonk opened 2 months ago

omonk commented 2 months ago

https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/87958a40fb27790d63bd463b9820e03f9a97fb9a/packages/docusaurus-plugin-openapi-docs/src/plugin-content-docs-types.d.ts#L8

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"
  }
}
sserrata commented 1 month ago

Hi @omonk, this may be something we can address by installing the missing types and/or removing the declaration.