1.1.2 • Published 8 months ago
ts-basic-utils v1.1.2
@your-org/ts-utils
Note This package is part of belgattitude/nextjs-monorepo-example.
A package holding some basic typescript utilities: typeguards, assertions...
- Packaged as ES module (type: module in package.json).
- Can be build with tsup (no need if using tsconfig aliases).
- Simple unit tests demo with either Vitest (
yarn test-unit
) or TS-Jest (yarn test-unit-jest
).
Install
From any package or apps:
yarn add @your-org/ts-utils@"workspace:^"
Enable aliases
{
//"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@your-org/ts-utils": ["../../../packages/ts-utils/src/index"],
},
},
}
Consume
import { isPlainObject } from "@your-org/ts-utils";
isPlainObject(true) === false;
1.1.2
8 months ago