We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044f1f6 commit 6b49a48Copy full SHA for 6b49a48
js/packages/openinference-core/src/utils/typeUtils.ts
@@ -42,9 +42,10 @@ export function isObjectWithStringKeys(
42
*/
43
export function isPromise<T = unknown>(value: unknown): value is Promise<T> {
44
return (
45
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
!!value &&
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
(value as any)?.then === "function" &&
48
49
(value as any)?.catch === "function"
50
);
51
}
0 commit comments