From ecf44a6039e3217cb2d45c465564a67bd21f095c Mon Sep 17 00:00:00 2001 From: Artyom Date: Fri, 5 Apr 2024 00:37:11 +0500 Subject: [PATCH] fix(async): change type of dataAtom in withDataAtom operator without initState (#785) --- packages/async/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/async/src/index.ts b/packages/async/src/index.ts index bd93dfb74..be0ac7ed5 100644 --- a/packages/async/src/index.ts +++ b/packages/async/src/index.ts @@ -210,7 +210,7 @@ export const withDataAtom: { T extends AsyncAction & { dataAtom?: AsyncDataAtom> }, - >(): Fn<[T], T & { dataAtom: AtomMut> }> + >(): Fn<[T], T & { dataAtom: AsyncDataAtom | undefined> }> < T extends AsyncAction & { dataAtom?: AsyncDataAtom>