Closed
Description
Subject of the feature
Are you open to adding an index.d.ts file?
Problem
I made a d.ts for this - that I have been using. Happy to PR it back to the project.
Expected behavior
VS Code Intelisense to show expected types.
Alternatives
I could submit directly to DefinitelyTyped - but I think their bots may ping you anyway. (Not sure, never PRd to DT
before)
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ericdmoore commentedon Mar 12, 2021
Example is here: https://gist.github.com/ericdmoore/0d1219ae22df612fc394770990365522
ChristianMurphy commentedon Mar 12, 2021
We are, you can see some examples of types being added in
syntax-tree/xast-util-sitemap#1, syntax-tree/hast-util-sanitize#21, and syntax-tree/mdast-util-to-string#5
Note that for types as a dts file, using DTSLint and/or type coverage is highly recommended.
More recently there has been a push to get types generated from JSDoc
wooorm/zwitch@88b233d and wooorm/zwitch#6
Either works, and a PR would be welcome!
Closing this issue as we don't want to keep a types tracker issue in each of the 300+ unified repos.