ts-help
v0.0.5
Published
Typescript cheat sheet
Downloads
6
Readme
ts-help
ts-help is a Typescript library to handle and group together helpers and coding principles
Contents
Installation
npm install ts-help
OR
yarn add ts-help
Usage
You can import any available helper and use it as simple as this
import { ArrayHelpers } from 'ts-help'
const myArray = [1,2,3]
console.log(ArrayHelpers.isEmpty(myArray)) // false
Features list
Primitive types
Algebraic data types
Compiler helper
Custom types
- NegativeInteger
- NegativeNonNullInteger
- NegativeNonNullNumber
- NegativeNumber
- NonEmptyArray
- NonNullInteger
- NonNullNumber
- Nullable
- Optional
- PositiveInteger
- PositiveNonNullInteger
- PositiveNonNullNumber
- PositiveNumber