flicker-alerts 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +13 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
declare module 'flicker-alerts' {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
// Interface de opções de alerta, incluindo a propriedade 'position'
|
3
|
+
interface AlertOptions {
|
4
|
+
type: 'success' | 'info' | 'warning' | 'danger';
|
5
|
+
title: string;
|
6
|
+
message: string;
|
7
|
+
duration?: number; // Duração do alerta (opcional)
|
8
|
+
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center'; // Nova propriedade 'position'
|
9
|
+
}
|
10
|
+
|
11
|
+
export default class FlickerAlerts {
|
12
|
+
// Método para exibir o alerta, agora aceitando 'position' como parte das opções
|
13
|
+
static showAlert(options: AlertOptions): void;
|
14
|
+
}
|
12
15
|
}
|