/** * A type that is not a promise. * * @template U The type to check. * @returns The type if it is not a promise, otherwise `never`. * @example NotPromise> // number */ type NotPromise = U extends PromiseLike ? never : U; export type { NotPromise };