diff --git a/src/vanilla/atom.ts b/src/vanilla/atom.ts index b2cfcba268..045dad917e 100644 --- a/src/vanilla/atom.ts +++ b/src/vanilla/atom.ts @@ -75,6 +75,11 @@ export function atom( // read-only derived atom export function atom(read: Read): Atom +// Value with default as initial value +export function atom( + read: Read, +): Atom + // write-only derived atom export function atom( initialValue: Value,