mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -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 =
|
type NotificationPayload =
|
||||||
| {
|
| {
|
||||||
state: true;
|
state: true;
|
||||||
level?: 'error' | 'warn' | 'info';
|
level?: 'error' | 'warning' | 'info';
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
state: false;
|
state: false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue