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