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