Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Enums.of type must be Array<string | number> #337

@MrCheater

Description

@MrCheater

Version

3.2.29

Problem

Array<string> is not equal Array<string | number>

  1. https://github.com/gcanti/tcomb/blob/master/docs/API.md#the-of-static-function

(keys: string | Array<string | number>, name?: string) => TcombType
and

  1. tcomb/index.d.ts

    Lines 172 to 176 in bef7690

    interface EnumsFunction extends Function {
    (map: Object, name?: string): Enums;
    of(enums: string, name?: string): Enums;
    of(enums: Array<string>, name?: string): Enums;
    }

of(enums: Array< string >, name?: string): Enums;

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