4.1.1 • Published 3 years ago

@used-hood/collection v4.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

4.1.0

3 years ago

4.1.1

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago