From 59754bb38f06d7adddcca85fa0e73f5395197822 Mon Sep 17 00:00:00 2001 From: Illia Kyselov Date: Thu, 8 Feb 2024 23:41:38 +0200 Subject: [PATCH] docs(entity adapter, api): add setOne and setMany signature --- docs/api/createEntityAdapter.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/api/createEntityAdapter.mdx b/docs/api/createEntityAdapter.mdx index ffd7d19ede..be14acc886 100644 --- a/docs/api/createEntityAdapter.mdx +++ b/docs/api/createEntityAdapter.mdx @@ -139,6 +139,12 @@ export interface EntityStateAdapter { addMany>(state: S, entities: T[]): S addMany>(state: S, entities: PayloadAction): S + setOne>(state: S, entity: T): S + setOne>(state: S, action: PayloadAction): S + + setMany>(state: S, entities: T[]): S + setMany>(state: S, entities: PayloadAction): S + setAll>(state: S, entities: T[]): S setAll>(state: S, entities: PayloadAction): S