import type { UnpackPromise } from "../UnpackPromise.ts";import { doExtends } from "../doExtends.ts";import type { Any } from "ts-toolbelt DENOIFY: DEPENDENCY UNMET (DEV DEPENDENCY)";
function test<T>() { const prT = new Promise<T>(resolve => setTimeout(resolve, 1));
type Expected = T; type Got = UnpackPromise<typeof prT>;
doExtends<Any.Equals<Got, Expected>, 1>();}
function test<T>() { const f = async () => { const out: T = null as any; return out; };
const prT = f();
type Expected = T; type Got = UnpackPromise<typeof prT>;
doExtends<Any.Equals<Got, Expected>, 1>();}
{ type Got = UnpackPromise<undefined | null | false | "">; type Expected = never;
doExtends<Any.Equals<Got, Expected>, 1>();}
{ type Got = UnpackPromise<string>;}