This project is part of the @thi.ng/umbrella monorepo.
Common, generic types, interfaces & mixins.
This package is implicitly used by most other projects in this repository. It defines:
- Dozens of generic, common interfaces & types
- Class & method decorators
- Mixins
- Logging
- Assert (can be disabled for production builds)
- Typedarray utilities
STABLE - used in production
yarn add @thi.ng/api
Package sizes (gzipped): ESM: 2.0KB / CJS: 2.1KB / UMD: 2.1KB
None
The following env variables are used to control the behavior of some functions in production builds:
UMBRELLA_ASSERTS
- if set to1
the assert function will always be enabled. By default,assert()
is disabled for production builds, i.e. ifprocess.env.NODE_ENV === "production"
.UMBRELLA_GLOBALS
- if set to1
the exposeGlobal function will always be enabled. By default,exposeGlobal()
is disabled for production builds, i.e. ifprocess.env.NODE_ENV === "production"
.
- Karsten Schmidt (@postspectacular)
- Matei Adriel (@Mateiadrielrafael)
© 2016 - 2020 Karsten Schmidt // Apache Software License 2.0