flicker-alerts 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.d.ts +13 -0
  2. package/package.json +2 -1
package/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ declare module 'flicker-alerts' {
2
+ interface AlertOptions {
3
+ type: 'success' | 'info' | 'warning' | 'danger';
4
+ title: string;
5
+ message: string;
6
+ duration?: number; // Duração do alerta (opcional)
7
+ }
8
+
9
+ export default class FlickerAlerts {
10
+ static showAlert(options: AlertOptions): void;
11
+ }
12
+ }
13
+
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Biblioteca para alertas animados",
5
5
  "main": "index.js",
6
+ "types": "index.d.ts",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
8
9
  },