flicker-alerts 1.0.2 → 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 +6 -11
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,22 +1,17 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.2",
4
- "description": "Biblioteca para criar alertas animados de sucesso, erro, aviso e informações.",
3
+ "version": "1.0.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
  },
9
10
  "keywords": [
10
11
  "alertas",
11
- "flicker",
12
12
  "javascript",
13
- "UI"
13
+ "notificações"
14
14
  ],
15
- "author": "Seu Nome",
16
- "license": "MIT",
17
- "dependencies": {},
18
- "devDependencies": {},
19
- "publishConfig": {
20
- "access": "public"
21
- }
15
+ "author": "",
16
+ "license": "MIT"
22
17
  }