better-auth
Version:
The most comprehensive authentication framework for TypeScript.
1 lines • 454 B
Source Map (JSON)
{"version":3,"file":"is-promise.mjs","names":[],"sources":["../../src/utils/is-promise.ts"],"sourcesContent":["export function isPromise(obj?: unknown): obj is Promise<unknown> {\n\treturn (\n\t\t!!obj &&\n\t\t(typeof obj === \"object\" || typeof obj === \"function\") &&\n\t\ttypeof (obj as Promise<unknown>).then === \"function\"\n\t);\n}\n"],"mappings":";AAAA,SAAgB,UAAU,KAAwC;AACjE,QACC,CAAC,CAAC,QACD,OAAO,QAAQ,YAAY,OAAO,QAAQ,eAC3C,OAAQ,IAAyB,SAAS"}