mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #61052 Make 'canvas' param optional for canvas-confetti create by @zsharp-gls
This commit is contained in:
@@ -66,3 +66,5 @@ confetti()!.then(() => {
|
||||
confetti()!.then(param => {
|
||||
param; // $ExpectType undefined
|
||||
});
|
||||
|
||||
confetti.create(undefined, undefined);
|
||||
|
||||
2
types/canvas-confetti/index.d.ts
vendored
2
types/canvas-confetti/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user