UNPKG

tsparticles-confetti

Version:

Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

10 lines (9 loc) 669 B
import type { Container, RecursivePartial } from "tsparticles-engine"; import type { IConfettiOptions } from "./IConfettiOptions"; export type ConfettiFirstParam = string | RecursivePartial<IConfettiOptions>; type ConfettiFunc = (idOrOptions: ConfettiFirstParam, confettiOptions?: RecursivePartial<IConfettiOptions>) => Promise<Container | undefined>; export declare function confetti(idOrOptions: ConfettiFirstParam, confettiOptions?: RecursivePartial<IConfettiOptions>): Promise<Container | undefined>; export declare namespace confetti { var create: (canvas: HTMLCanvasElement, options: RecursivePartial<IConfettiOptions>) => Promise<ConfettiFunc>; } export {};