@muffin-dev/ts-helpers
v1.2.0
Published
A set of tools for Typescript.
Downloads
3
Readme
Muffin Dev for Node - TS Helpers
This module contains a set of utilities for Typescript.
Installation
Install it locally with NPM by using the following command:
npm i @muffin-dev/ts-helpers
Usage
import * as TSHelpers from '@muffin-dev/ts-helpers';
// OR, if you need only a specific method
// import { enumAsArray } from '@muffin-dev/ts-helpers';
enum DemoEnum {
A,
B,
C
}
const enumArray = TSHelpers.enumAsArray(DemoEnum);
// Contains [ "A", "B", "C" ]