Skip to content

Restore type generation via tsc #29

Description

@bryanbraun

I want this library to be written in Javascript and exported to plain ES modules, while still publishing types (.d.ts files) for downstream users with typescript codebases.

Previously, I did this automatically by publishing with pika/pack, but that tool was deprecated and I replaced it with microbundle which doesn't automatically generate types. This issue is to restore the automatic type generation.

My preferred way to do this is to add JSDoc comments into the library, and setup tsc to read the comments and publish the .d.ts file as part of our bundle process. This has the added benefit of enabling inline editor linting/hints to the library developers. It should also fix the issue with the "uninferrable types" in our plugin system.

For more background on how this type generation process should work, see:

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