You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svinokot a4e6cb2966 fix array creation 1 month ago
nbproject v1.6.3 8 months ago
test 2.0.2 1 month ago
.gitignore v1.6.3 8 months ago
LICENSE v1.6.3 8 months ago
index.d.ts add infer to list() 1 month ago
index.js v1.6.3 8 months ago
package-lock.json fix array creation 1 month ago
package.json fix array creation 1 month ago v1.6.3 8 months ago
tsconfig.json v1.6.3 8 months ago
webpack.config.js v1.6.3 8 months ago

It is the typings for lens-js

It is the simple state manager for web apps with TS typings. It is implementation of Object-relative method of data organizing. So, let try...



import { Lens, LensUtils } from '@vovikilelik/lens-ts';
  • Lens - base lens class;
  • LensUtils - some usefull functions for fun;


// Create interface first
interface State {
    name: string;
    color?: number;
    basket?: any[];

// Initialize store and create lens
export const store = LensUtils.createLens<State>({ name: 'Bob' });

For more help, please look this repository