js-confetti
Advanced tools
Comparing version 0.10.1 to 0.10.2
{ | ||
"name": "js-confetti", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"license": "MIT", | ||
@@ -23,3 +23,4 @@ "description": "JS Confetti library with zero dependencies, works without any config, TS typings included, adapts to user screen", | ||
"build-site": "NODE_ENV=production webpack --config webpack.config.site.ts", | ||
"lint": "eslint src --ext .ts" | ||
"lint": "eslint . --ignore-pattern node_modules/ --ext .ts --ext .tsx", | ||
"lint-fix": "eslint . --ignore-pattern node_modules/ --ext .ts --ext .tsx --fix" | ||
}, | ||
@@ -26,0 +27,0 @@ "devDependencies": { |
@@ -6,2 +6,6 @@ // Type definitions for js-confetti | ||
interface IJSConfettiConfig { | ||
canvas?: HTMLCanvasElement, | ||
} | ||
interface IAddConfettiConfig { | ||
@@ -16,5 +20,5 @@ confettiRadius?: number, | ||
declare class JSConfetti { | ||
constructor(); | ||
constructor(jsConfettiConfig?: IJSConfettiConfig); | ||
addConfetti(confettiConfig?: IAddConfettiConfig): Promise<void>; | ||
} |
35331
432