From 4ce5ced44d490f4c6df771995aef14e11910ec57 Mon Sep 17 00:00:00 2001 From: ktym4a Date: Thu, 2 May 2024 15:58:40 +0900 Subject: [PATCH] change: NotificationPayload type (#10931) * change: NotificationPayload type * Create silent-zoos-work.md --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> --- .changeset/silent-zoos-work.md | 5 +++++ packages/astro/src/runtime/client/dev-toolbar/helpers.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/silent-zoos-work.md diff --git a/.changeset/silent-zoos-work.md b/.changeset/silent-zoos-work.md new file mode 100644 index 0000000000..b5ec9ac11e --- /dev/null +++ b/.changeset/silent-zoos-work.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Fixes `toggleNotification()`'s parameter type for the notification level not using the proper levels diff --git a/packages/astro/src/runtime/client/dev-toolbar/helpers.ts b/packages/astro/src/runtime/client/dev-toolbar/helpers.ts index 9fcb5af798..849c8cb101 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/helpers.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/helpers.ts @@ -1,7 +1,7 @@ type NotificationPayload = | { state: true; - level?: 'error' | 'warn' | 'info'; + level?: 'error' | 'warning' | 'info'; } | { state: false;