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:
parent
6a9669b810
commit
9887f24124
2 changed files with 8 additions and 1 deletions
5
.changeset/smooth-gifts-train.md
Normal file
5
.changeset/smooth-gifts-train.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Exports type for Dev Toolbar App under correct name
|
|
@ -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__: {
|
||||
|
|
Loading…
Add table
Reference in a new issue