tcomb icon indicating copy to clipboard operation
tcomb copied to clipboard

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

Open MrCheater opened this issue 4 years ago • 0 comments

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. https://github.com/gcanti/tcomb/blob/bef7690a072c056a8604efd376fb4c959a407557/index.d.ts#L172-L176

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

MrCheater avatar Apr 13 '20 16:04 MrCheater