docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

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

Open omonk opened this issue 1 year ago • 1 comments

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"
  }
}

omonk avatar Sep 19 '24 10:09 omonk

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

sserrata avatar Oct 04 '24 15:10 sserrata