Skip to content

Commit

Permalink
change: NotificationPayload type (#10931)
Browse files Browse the repository at this point in the history
* change: NotificationPayload type

* Create silent-zoos-work.md

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
  • Loading branch information
ktym4a and Princesseuh committed May 2, 2024
1 parent 5248ed1 commit 4ce5ced
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silent-zoos-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Fixes `toggleNotification()`'s parameter type for the notification level not using the proper levels
2 changes: 1 addition & 1 deletion packages/astro/src/runtime/client/dev-toolbar/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type NotificationPayload =
| {
state: true;
level?: 'error' | 'warn' | 'info';
level?: 'error' | 'warning' | 'info';
}
| {
state: false;
Expand Down

0 comments on commit 4ce5ced

Please sign in to comment.