This package aims to make more complex enum types easy. It does this by borrowing from Rusts well thought out type system (pun intended).

Installation

To install this library using NPM, run the following command:

npm install type-sea@npm:@tygo-van-den-hurk/type-sea

This installs it under the alias Type-Sea. You can of course also install it without using aliases. However it is the difference between:

import { ... } from 'type-sea';
// and:
import { ... } from '@tygo-van-den-hurk/type-sea';

To install from GitHub' NPM registry add the --registry=https://npm.pkg.github.com/ option. This might require a personal access token from GitHub to function correctly.