diff --git a/src/index.d.ts b/src/index.d.ts index 94adf4c..4bbbd31 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -69,6 +69,9 @@ declare namespace Charm { */ function atom(state: State, options?: AtomOptions): Atom; + // Overload for no arguments + function atom(state?: State, options?: AtomOptions): Atom; + /** * Creates a read-only atom that derives its state from one or more atoms. * Used to avoid unnecessary recomputations if multiple listeners depend on