mirror of
https://github.com/teableio/teable
synced 2024-11-22 07:13:32 +00:00
.. | ||
src | ||
.escheckrc | ||
.eslintrc.cjs | ||
.gitignore | ||
.size-limit.cjs | ||
lint-staged.config.js | ||
package.json | ||
README.md | ||
tsconfig.build.json | ||
tsconfig.eslint.json | ||
tsconfig.json | ||
vitest.config.ts | ||
vitest.setup.js |
@teable/core
Note
This package is part of teableio/teable.
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 (
pnpm test-unit
) or TS-Jest (pnpm test-unit-jest
).
Install
From any package or apps:
yarn add @teable/core@"workspace:^"
Enable aliases
{
//"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@teable/core": ["../../../packages/core/src/index"],
},
},
}
Consume
import { isPlainObject } from "@teable/core";
isPlainObject(true) === false;