pos-state-binder
TypeScript icon, indicating that this package has built-in type declarations

0.0.120 • Public • Published

Usage guide

Resource description
index.ts Exports all the stores from stores folder and QueryClient instance and QueryClientProvider
queryClient.ts We export the QueryClient instance and Provider to use the same instance in network calls of store methods. This will avoid any mismatch between instance of handling the network calls using TanStackQuery
stores Folder We create all the stores in this stores folder as a seperate file for a specific module and export them in index.ts of the stores folder.
types Folder Exports all the types related to stores. Use seperate .d.ts files for defining types for a store and export them in index.d.ts of the types folder.

Code Standards

  1. Always use capital I (interface) in as first letter while creating an Interface. For example, export interface IMyCustomType {...}
  2. Use async await functions instead of promises to maintain good code standards.
  3. Never push code with type errors, and if in extreme circumstances any type can be used, not all the time.
  4. Never change configurations without prior intimation to Tech leads.

Readme

Keywords

none

Package Sidebar

Install

npm i pos-state-binder

Weekly Downloads

563

Version

0.0.120

License

ISC

Unpacked Size

786 kB

Total Files

188

Last publish

Collaborators

  • crayond_dev