method Defer.prototype.thenimport { Defer } from "https://deno.land/x/defer@0.6.0/src/defer.ts"; then<TResult1 extends T = T, TResult2 = never>(onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected: (reason: unknown) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>then<TResult1 extends T = T, TResult2 = never>(onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>Type ParametersoptionalTResult1 extends T = ToptionalTResult2 = neverParametersonfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>onrejected: (reason: unknown) => TResult2 | PromiseLike<TResult2>ReturnsPromise<TResult1 | TResult2>Type ParametersoptionalTResult1 extends T = ToptionalTResult2 = neverParametersonfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>optionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | nullReturnsPromise<TResult1 | TResult2>Type ParametersoptionalTResult1 = ToptionalTResult2 = neverParametersoptionalonfulfilled: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | nulloptionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | undefined | nullReturnsPromise<TResult1 | TResult2>