advanced-dynamic-filter
v0.7.0
Published
This is a client library to build dynamic filter at client side and send it to server side to be executed and get results back.
Downloads
4
Maintainers
Readme
Advanced Dynamic Filter TypeScript Client
This is a client library to build dynamic filter at client side and send it to server side to be executed and get results back.
It uses npm, TypeScript compiler, Jest, webpack, husky, pinst, commitlint. The production files include CommonJS, ES Modules, UMD version and TypeScript declaration files.
Development
This will create a symbolic link from globally-installed example-typescript-package to node_modules/ of the current folder.
You can then create a, for example, testdomain.ts file with the content:
import { Domain } from 'dynamic-filter'
const domain: Domain = ['&', ['firstName', '=', 'ahmed'], ['Age', '>', 30]];
const json: string = toJson(domain);
console.log(json);
If you don't see any linting errors in VS Code, if you put your mouse cursor over Domain
and see its type, then it's all good.
npm uninstall example-typescript-package -g