ts-array-as-tuple

v1.0.1
Function that asserts the length of an array and casts it to a tuple.

prepare

yarn run build

lint

tslint --project tsconfig.json --format stylish && prettier -l '**/*.{json,md}'

fix

tslint --project tsconfig.json --format stylish --fix && prettier --write '**/*.{json,md}'

test

jest

build

tsc

pretest

yarn run lint

prebuild

rm -rf build

postbuild

find build -name '__*__' -type d -prune -exec rm -r '{}' +
npm i ts-array-as-tuple

Metadata

  • MIT
  • Whatever
  • David Brockman Smoliansky
  • released 7/23/2018

Downloads

Maintainers