This TypeScript library gives you some helper functions, so that you can work safely with basic types.
# run this from your Terminal
npm install @ganbarodigital/ts-lib-basic-types
// add this import to your Typescript code
import { inpsectObject } from "@ganbarodigital/ts-lib-basic-types/lib/v1"
VS Code users: once you've added a single import anywhere in your project, you'll then be able to auto-import anything else that this library exports.
TBD.
Use npm run clean
to delete all of the compiled code.
Use npm run build
to compile the Typescript into plain Javascript. The compiled code is placed into the lib/
folder.
npm run build
does not compile the unit test code.
Use npm run test
to compile and run the unit tests. The compiled code is placed into the lib/
folder.
Use npm run cover
to compile the unit tests, run them, and see code coverage metrics.
Metrics are written to the terminal, and are also published as HTML into the coverage/
folder.