0.7.0 • Published 2 years ago

advanced-dynamic-filter v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

npm package version number Actions Status License

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