diff options
author | 2024-05-02 15:58:40 +0900 | |
---|---|---|
committer | 2024-05-02 08:58:40 +0200 | |
commit | 4ce5ced44d490f4c6df771995aef14e11910ec57 (patch) | |
tree | 97be12f14f9f2d0253ac84165269da81cca3b5f3 | |
parent | 5248ed1fb35bc1407660a189f23155812787f9e4 (diff) | |
download | astro-4ce5ced44d490f4c6df771995aef14e11910ec57.tar.gz astro-4ce5ced44d490f4c6df771995aef14e11910ec57.tar.zst astro-4ce5ced44d490f4c6df771995aef14e11910ec57.zip |
change: NotificationPayload type (#10931)
* change: NotificationPayload type
* Create silent-zoos-work.md
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
-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; |