Skip to content

Pretty print Typescript type declarations shipped with xstate #462

Open
@ethanresnick

Description

@ethanresnick

I've been getting started with xstate for the last few days and — despite reading the docs quite thoroughly and understanding the concepts — I often find myself consulting the TS types to discover the exact shape or order of some function's arguments, etc. They are, for those things, the best kind of docs.

Unfortunately, even if one understands the advanced types, the type declarations file is almost impossible to read — just because the lines are so long. So this is a simple request to run prettier or a similar formatter over the generated .d.ts files as part of the package publishing process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions