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

Document (automate?) maintenance of typings package #378

@SamB

Description

@SamB

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions