Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

RFC: Unify all "APIs" and namings #18

@Kelin2025

Description

@Kelin2025

Case

Currently keyval methods such createListApi, createItemApi, createSelection etc. return different shapes, but they have some common parts

Solution

  1. Unify shapes that are returned from methods
  2. Unify methods naming (createSelection -> createSelectionApi)
const $kv = createListApi({ ... })
const $selection = createSelectionApi({ ... })
const $mapped = createMapApi({ ... })

$kv.state.store
$kv.state.items
$selection.state.store
$selection.state.items

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions