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.
- package/index.d.ts +13 -0
- 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