diff options
-rw-r--r-- | .changeset/silent-zoos-work.md | 5 | ||||
-rw-r--r-- | packages/astro/src/runtime/client/dev-toolbar/helpers.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/silent-zoos-work.md b/.changeset/silent-zoos-work.md new file mode 100644 index 000000000..b5ec9ac11 --- /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 9fcb5af79..849c8cb10 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; |