@used-hood/collection
TypeScript icon, indicating that this package has built-in type declarations

4.1.1 • Public • Published

Collection

Collection on effector.

npm install @used-hood/collection
import { v4 as createUUIDv4 } from 'uuid'
import { Collection } from '@used-hood/collection'

const USER_COLLECTION_NAME = 'User'

type UserCollectionData = {
  login: string
  password: {
    hash: string
    salt: string
  }
}

type UserCollectionName = typeof USER_COLLECTION_NAME

export const Users = Collection.of<UserCollectionData, UserCollectionName>({
  name: 'User',
  generateId: createUUIDv4
})

get

has

find

filter

remove

create

update

Readme

Keywords

none

Package Sidebar

Install

npm i @used-hood/collection

Weekly Downloads

2

Version

4.1.1

License

MIT

Unpacked Size

11.5 kB

Total Files

5

Last publish

Collaborators

  • outbreak