unifiedjs / unified

☔️ interface for parsing, inspecting, transforming, and serializing content through syntax trees
https://unifiedjs.com
MIT License
4.49k stars 110 forks source link

gettings console warnings from `node_modules/unified/index.d.ts` #250

Closed dimaMachina closed 1 month ago

dimaMachina commented 1 month ago

Initial checklist

Affected packages and versions

unified@11.05

Link to runnable example

No response

Steps to reproduce

gettings warnings from index.d.ts

Expected behavior

clean terminal output

Actual behavior

nextra:dev: "Value" is imported from external module "vfile" but never used in "node_modules/unified/index.d.ts".
nextra:dev: "CompileResults" is imported from external module "./lib/index.js" but never used in "node_modules/unified/index.d.ts".

Affected runtime and version

node@20.16.0

Affected package manager and version

No response

Affected OS and version

No response

Build and bundle tools

No response

ChristianMurphy commented 1 month ago

Welcome @dimaMachina! 👋 That looks like a bug in Nextra not recognizing TypeScript doc comments, those values are used/needed for {@linkcode Value} and {@linkcode CompileResults} in that file.

dimaMachina commented 1 month ago

yes, they are used in JSDoc comments but does typescript understand @linkcode?

ChristianMurphy commented 1 month ago

Yes it does, and has for years, through the TS language server https://github.com/microsoft/vscode/issues/57495

dimaMachina commented 1 month ago

Ty, sorry for noise

github-actions[bot] commented 1 month ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.