newtype-ts

v0.3.3
Implementation of newtypes in TypeScript
typescript newtype functional-programming

lint

tslint -p .

typings-checker

typings-checker --allow-expect-error --project typings-checker/tsconfig.json typings-checker/index.ts

jest

jest

prettier

prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different "{src,test}/**/*.ts"

fix-prettier

prettier --no-semi --single-quote --print-width 120 --parser typescript --write "{src,test}/**/*.ts"

test

npm run prettier && npm run lint && npm run typings-checker && npm run jest && npm run docs

clean

rm -rf lib/* es6/*

prebuild

npm run clean

build

tsc -p ./tsconfig.build.json && tsc -p ./tsconfig.build-es6.json

prepublish

npm run build

docs

docs-ts

postbuild

import-path-rewrite

Metadata

  • MIT
  • Whatever
  • Giulio Canti
  • released 1/9/2020

Downloads

Maintainers