🤖 Merge PR #61052 Make 'canvas' param optional for canvas-confetti create by @zsharp-gls

This commit is contained in:
Zak Sharp
2022-07-12 22:12:17 -05:00
committed by GitHub
parent 69089242cb
commit 96d8f47315
2 changed files with 3 additions and 1 deletions

View File

@@ -66,3 +66,5 @@ confetti()!.then(() => {
confetti()!.then(param => {
param; // $ExpectType undefined
});
confetti.create(undefined, undefined);

View File

@@ -144,7 +144,7 @@ declare namespace confetti {
* This method creates an instance of the confetti function that uses a custom canvas.
*/
function create(
canvas: HTMLCanvasElement,
canvas?: HTMLCanvasElement,
options?: GlobalOptions
): CreateTypes;
}