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

RFC: Unify all "APIs" and namings #18

Open
Kelin2025 opened this issue Jul 7, 2023 · 0 comments
Open

RFC: Unify all "APIs" and namings #18

Kelin2025 opened this issue Jul 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Kelin2025
Copy link
Member

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
@Kelin2025 Kelin2025 added the enhancement New feature or request label Jul 7, 2023
@Kelin2025 Kelin2025 self-assigned this Jul 7, 2023
This was referenced Jul 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant