From 68a964346d1b4f0509d244c7b13e54146817238f Mon Sep 17 00:00:00 2001 From: Jesse Jackson Date: Sun, 5 Nov 2023 16:40:56 -0600 Subject: fix(core/types): `Promise.withResolvers`: Unmark callback param as optional (#21085) See discussion on merged commit: https://github.com/denoland/deno/commit/1d19b1011bd7df50598f5981408c2d78c35b76d2#r131604700 Signed-off-by: Jesse Jackson --- cli/tsc/dts/lib.es2021.promise.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/tsc/dts/lib.es2021.promise.d.ts b/cli/tsc/dts/lib.es2021.promise.d.ts index 5212c8d3e..a81e3e5e1 100644 --- a/cli/tsc/dts/lib.es2021.promise.d.ts +++ b/cli/tsc/dts/lib.es2021.promise.d.ts @@ -50,5 +50,5 @@ interface PromiseConstructor { * Creates a Promise that can be resolved or rejected using provided functions. * @returns An object containing `promise` promise object, `resolve` and `reject` functions. */ - withResolvers(): { promise: Promise, resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void }; + withResolvers(): { promise: Promise, resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void }; } -- cgit v1.2.3