menu
Channels
Team
Posts
Members
Info

TypeScript through JSDoc RFC

There is an Request For Comments regarding using TypeScript to check the code across the unified projects (vfile, unified, remark, rehype, etc) using JSDoc comments to drive the typings. https://github.com/unifiedjs/rfcs/pull/5 Feedback on the PR is welcome!

thumbsup
1
message-simple
0

Where should we put @types/unist?

Where should we put it for our modules? We have two choices dependencies and devDependencies . If we put in dependencies, Users will have multiple types/unist so they should run npm run dedupe to discard duplicated type definition modules. …

thumbsup
0
message-simple
2

How to get hast/Element type definition?

How to get Element interface in TypeScript? https://github.com/syntax-tree/hast#element

thumbsup
0
message-simple
6

Missing typings across plugin community

Hi I just created 3 issues on several plugins because they have no typings • https://github.com/remarkjs/remark-rehype/issues/10 …

thumbsup
2
message-simple
0

TypeScript version(s) supported?

There are a few questions coming up about supported TypeScript version(s). https://github.com/unifiedjs/unified/pull/43#issuecomment-447402720 https://github.com/vfile/vfile-message/issues/3 …

thumbsup
0
message-simple
24