Socket
Socket
Sign inDemoInstall

@vovikilelik/lens-ts

Application state and action manager on TypeScript


Version published
Maintainers
1

Readme

Source

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...

Wiki

Initialize

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

Typing

// 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

Keywords

FAQs

Last updated on 29 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc