NeahNew/node_modules/next/dist/shared/lib/is-thenable.d.ts
2025-05-03 14:17:46 +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>;