method CancelablePromise.prototype.thenimport { CancelablePromise } from "https://dotland.deno.dev/x/wmill@v1.423.1/gen/index.ts"; then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>Type ParametersoptionalTResult1 = ToptionalTResult2 = neverParametersoptionalonFulfilled: ((value: T) => TResult1 | PromiseLike<TResult1>) | nulloptionalonRejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | nullReturnsPromise<TResult1 | TResult2>