Skip to content

Commit 34b0221

Browse files
Narrower type to the "type" field in NotificationsOptions (#66)
1 parent 86546a6 commit 34b0221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export interface NotificationsOptions {
33
id?: number;
44
title?: string;
55
text?: string;
6-
type?: string;
6+
type?: "warn" | "success" | "error";
77
group?: string;
88
duration?: number;
99
speed?: number;

0 commit comments

Comments
 (0)