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;