From 7a6585409c5274c026fd524b927d453d7c822094 Mon Sep 17 00:00:00 2001 From: Younghoo Kim Date: Mon, 27 Nov 2023 01:09:58 +0900 Subject: [PATCH] docs: fix typo (#2270) --- docs/guides/async.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/async.mdx b/docs/guides/async.mdx index e8519cfc5c..adbfbf30f4 100644 --- a/docs/guides/async.mdx +++ b/docs/guides/async.mdx @@ -94,7 +94,7 @@ const Component = () => { ### Usage in TypeScript -In TypeScript `atom(0)` is inferred as `PrimitiveAtom`. It cannot accept `Promise` as a value so preceding code would not typecheck. To accomodate for that you need to type your atom explicitly and add `Promise` as accepted value. +In TypeScript `atom(0)` is inferred as `PrimitiveAtom`. It cannot accept `Promise` as a value so preceding code would not typecheck. To accommodate for that you need to type your atom explicitly and add `Promise` as accepted value. ```ts const baseAtom = atom>(0) // Will accept sync and async values