lib-tolerance v0.0.1
LibTolerances
Configuration schema, TypeScript types, and helper classes for various configuration files driving how things are displayed in some UIs.
For example, *.table-config.json
files dictate how to display information in
tables, configuring information including what reports are available, what
columns each report should display, display names for these columns, text
alignment values, REST URLs to get data, and more.
Additionally, the configs/
directory contains actual configuration files
for each customer. These can be modified and, when merged into the
update-configs
branch, uploaded to S3 via CI/CD to update the working version.
Library Usage
First, ensure that you've set up your local NPM to know about the @vs
registry (see this StackOverflow post)
Install the package:
npm install @vs/lib-tolerances
Use in your code:
import { TolController } from '@vs/lib-tolerances';
// Initialize accessor
const tc = new TolController(XX, YY);
// Check if it has tolerance data yet and perform if so
tc.loading ? '' : tc.isDefect();
3 years ago