extended-enum
extended-enum copied to clipboard
Fix README typos
Spotted some typos in the code and plain text.. should fix them
Matches
extend
ed enumerations provide a default method named is
. is
is aware of the primitives defining the enumeration.
enum _Fruit {
Apple = 'APPLE',
Orange = 'ORANGE',
}
const Fruit = extend<typeof _Fruit, Fruit>(Fruit);
const Fruit = extend<typeof _Fruit, Fruit>(Fruit);
should be const Fruit = extend<typeof _Fruit, _Fruit>(_Fruit);
The exhuastive typing of union is not supported yet
should be
The exhaustive typing of union is not supported yet
I think there is a typo at what-powers-does-it-have.
expect(Animal.Cat !== Animal.Dog).toBe(false);
I think this should be corrected to either one of below, if it was supposed to describe that extend
ed enum works like original TS enums when the are compared.
expect(Animal.Cat !== Animal.Cat).toBe(false);
expect(Animal.Cat !== Animal.Dog).toBe(true);
expect(Animal.Cat === Animal.Dog).toBe(false);
Typos until this comment are corrected in #40. Please comment any existing typos in README.md in this issue. :+1: