Neah/node_modules/next/dist/shared/lib/is-thenable.d.ts
2025-04-24 17:19:14 +02:00

8 lines
233 B
TypeScript

/**
* Check to see if a value is Thenable.
*
* @param promise the maybe-thenable value
* @returns true if the value is thenable
*/
export declare function isThenable<T = unknown>(promise: Promise<T> | T): promise is Promise<T>;