From 032adb0dda315fb19bb5af42abd9a4542b2d502a Mon Sep 17 00:00:00 2001 From: Alexander Niebuhr Date: Sat, 2 Dec 2023 21:17:55 +0100 Subject: [PATCH] chore: resolve review comments Co-authored-by: Nate Moore <7118177+natemoo-re@users.noreply.github.com> --- packages/astro/src/@types/astro.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 5249da690ad85..cd9bd09540105 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -2506,14 +2506,6 @@ export interface ClientDirectiveConfig { entrypoint: string; } -export interface DevOverlayPlugin { - id: string; - name: string; - icon: Icon; - init?(canvas: ShadowRoot, eventTarget: EventTarget): void | Promise; - beforeTogglingOff?(canvas: ShadowRoot): boolean | Promise; -} - export interface DevToolbarApp { id: string; name: string; @@ -2522,6 +2514,8 @@ export interface DevToolbarApp { beforeTogglingOff?(canvas: ShadowRoot): boolean | Promise; } +export type DevOverlayPlugin = DevToolbarApp; + export type DevOverlayMetadata = Window & typeof globalThis & { __astro_dev_overlay__: {