0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

chore: also export DevToolbarApp type for API (#9273)

* chore: also export `DevToolbarApp` type for API

* chore: changeset

* chore: resolve review comments

Co-authored-by: Nate Moore <7118177+natemoo-re@users.noreply.github.com>

* Update .changeset/smooth-gifts-train.md

---------

Co-authored-by: Nate Moore <7118177+natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
Alexander Niebuhr 2023-12-04 18:46:21 +01:00 committed by GitHub
parent 6a9669b810
commit 9887f24124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Exports type for Dev Toolbar App under correct name

View file

@ -2578,7 +2578,7 @@ export interface ClientDirectiveConfig {
entrypoint: string;
}
export interface DevOverlayPlugin {
export interface DevToolbarApp {
id: string;
name: string;
icon: Icon;
@ -2586,6 +2586,8 @@ export interface DevOverlayPlugin {
beforeTogglingOff?(canvas: ShadowRoot): boolean | Promise<boolean>;
}
export type DevOverlayPlugin = DevToolbarApp;
export type DevOverlayMetadata = Window &
typeof globalThis & {
__astro_dev_overlay__: {