Skip to content

Incorrect TypeScript Types #1491

@nickhudkins

Description

@nickhudkins

Many of the TypeScript definitions specify void as a type parameter for generic types where the equivalent Flow type definition uses an empty type parameter:

TypeScript Type Definition (🤨)

export type OutputGraph = Graph<void>;

Flow Type Definition

export type OutputGraph = Graph<>;

I would posit that the TypeScript definition is... mad sus, and I suspect we might just be running into this because the types are hand-written. Am I missing something and believing this is wrong? I'll open a PR to correct assuming this is indeed an incorrect typing.

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