Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Document (automate?) maintenance of typings package #378

Open
SamB opened this issue Mar 26, 2023 · 0 comments
Open

Document (automate?) maintenance of typings package #378

SamB opened this issue Mar 26, 2023 · 0 comments

Comments

@SamB
Copy link

SamB commented Mar 26, 2023

I was looking at what you've got in packages/typings, and it looks like some of it comes from TypeScript's bundled libs and some of it comes from @types/node.

It would be a good idea to add a README describing how these are extracted, especially the parts from TypeScript's libs, since that stuff is originally not from files named anything like index.d.ts, whereas the filenames for the node stuff look like the ones from DefinitelyTyped.

I would sort of hope that the procedure would end up something like "run this script, passing in a TypeScript version number, and/or this other script, passing a @types/node version number". (Presumably one would also need to run the tests and eyeball the diffs for anything suspicious. I guess it would also generally be a good idea to add tests for new APIs, to make sure the typechecker actually lets you use them.)

(Of course, this also leaves me wondering: what if I'm using a different version of node, or want some control over the allowed EcmaScript features?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant