{"version":3,"names":["readOption","value"],"sources":["maybe-accessor.ts"],"sourcesContent":["import type { Accessor } from \"solid-js\";\n\n/**\n * Accessor-or-value shape. Passing an accessor lets the option be\n * reactively read at the use site; passing a bare value keeps the\n * 1:1 ergonomics of the React source.\n */\nexport type MaybeAccessor<T> = T | Accessor<T>;\n\nexport function readOption<T>(value: MaybeAccessor<T>): T {\n\treturn typeof value === \"function\" ? (value as Accessor<T>)() : value;\n}\n"],"mappings":"AAEA;AACA;AACA;AACA;AACA;;AAGA,OAAO,SAASA,UAAUA,CAAIC,KAAuB,EAAK;EACzD,OAAO,OAAOA,KAAK,KAAK,UAAU,GAAIA,KAAK,CAAiB,CAAC,GAAGA,KAAK;AACtE","ignoreList":[]}