UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

1 lines 573 B
{"version":3,"file":"is-atom.mjs","names":[],"sources":["../../src/utils/is-atom.ts"],"sourcesContent":["import type { Atom } from \"nanostores\";\n\nexport function isAtom(value: unknown): value is Atom<unknown> {\n\treturn (\n\t\ttypeof value === \"object\" &&\n\t\tvalue !== null &&\n\t\t\"get\" in value &&\n\t\ttypeof (value as any).get === \"function\" &&\n\t\t\"lc\" in value &&\n\t\ttypeof (value as any).lc === \"number\"\n\t);\n}\n"],"mappings":";AAEA,SAAgB,OAAO,OAAwC;AAC9D,QACC,OAAO,UAAU,YACjB,UAAU,QACV,SAAS,SACT,OAAQ,MAAc,QAAQ,cAC9B,QAAQ,SACR,OAAQ,MAAc,OAAO"}