var Country = t.enums.of('IT, US', 'Country'); // 'IT, US' should be "IT", "US" ???
Second:
import tc from "tcomb";
import {validate} from "tcomb-validation";
// a dictionary of numbers
let Country = tc.enums.of("IT", "US", "Country");
let Warranty = tc.dict(Country, tc.Number);
console.log(validate({US: 2, IT: 1}, Warranty).isValid()); // => false instead of true
First, pls look at this:
An error in documentation?!
Second:
Error message: