0
Fork 0
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:
ktym4a 2024-05-02 15:58:40 +09:00 committed by GitHub
parent 5248ed1fb3
commit 4ce5ced44d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Fixes `toggleNotification()`'s parameter type for the notification level not using the proper levels

View file

@ -1,7 +1,7 @@
type NotificationPayload =
| {
state: true;
level?: 'error' | 'warn' | 'info';
level?: 'error' | 'warning' | 'info';
}
| {
state: false;