10000 Can't type empty Seq constructor · Issue #1876 · immutable-js/immutable-js · GitHub
[go: up one dir, main page]

Skip to content
Can't type empty Seq constructor  #1876
Closed
@pbadenski

Description

@pbadenski

TS signature for empty Seq constructor doesn't allow manually setting generic type.

Is:
function Seq(): Seq<unknown, unknown>;

Should be:
function Seq<K = unknown, V = unknown>(): Seq<K, V>;

Same problem for Seq.Keyed, Seq.Indexed and Seq.Set.

Version: 4.0.0-rc.15

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0