mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
change: NotificationPayload type (#10931)
* change: NotificationPayload type * Create silent-zoos-work.md --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
This commit is contained in:
parent
5248ed1fb3
commit
4ce5ced44d
2 changed files with 6 additions and 1 deletions
5
.changeset/silent-zoos-work.md
Normal file
5
.changeset/silent-zoos-work.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Fixes `toggleNotification()`'s parameter type for the notification level not using the proper levels
|
|
@ -1,7 +1,7 @@
|
|||
type NotificationPayload =
|
||||
| {
|
||||
state: true;
|
||||
level?: 'error' | 'warn' | 'info';
|
||||
level?: 'error' | 'warning' | 'info';
|
||||
}
|
||||
| {
|
||||
state: false;
|
||||
|
|
Loading…
Reference in a new issue