0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-10 22:38:53 -05:00

[ci] format

This commit is contained in:
Luiz Ferraz 2024-07-17 15:59:44 +00:00 committed by Emanuele Stoppa
parent b14c2e3952
commit 7ed2377b0d

View file

@ -3058,7 +3058,7 @@ export type HookParameters<
declare global { declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace // eslint-disable-next-line @typescript-eslint/no-namespace
namespace Astro { namespace Astro {
export interface IntegrationHooks { export interface IntegrationHooks {
'astro:config:setup': (options: { 'astro:config:setup': (options: {
config: AstroConfig; config: AstroConfig;
@ -3071,9 +3071,9 @@ declare global {
injectRoute: (injectRoute: InjectedRoute) => void; injectRoute: (injectRoute: InjectedRoute) => void;
addClientDirective: (directive: ClientDirectiveConfig) => void; addClientDirective: (directive: ClientDirectiveConfig) => void;
/** /**
* @deprecated Use `addDevToolbarApp` instead. * @deprecated Use `addDevToolbarApp` instead.
* TODO: Fully remove in Astro 5.0 * TODO: Fully remove in Astro 5.0
*/ */
addDevOverlayPlugin: (entrypoint: string) => void; addDevOverlayPlugin: (entrypoint: string) => void;
// TODO: Deprecate the `string` overload once a few apps have been migrated to the new API. // TODO: Deprecate the `string` overload once a few apps have been migrated to the new API.
addDevToolbarApp: (entrypoint: DevToolbarAppEntry | string) => void; addDevToolbarApp: (entrypoint: DevToolbarAppEntry | string) => void;
@ -3102,13 +3102,13 @@ declare global {
'astro:build:ssr': (options: { 'astro:build:ssr': (options: {
manifest: SerializedSSRManifest; manifest: SerializedSSRManifest;
/** /**
* This maps a {@link RouteData} to an {@link URL}, this URL represents * This maps a {@link RouteData} to an {@link URL}, this URL represents
* the physical file you should import. * the physical file you should import.
*/ */
entryPoints: Map<RouteData, URL>; entryPoints: Map<RouteData, URL>;
/** /**
* File path of the emitted middleware * File path of the emitted middleware
*/ */
middlewareEntryPoint: URL | undefined; middlewareEntryPoint: URL | undefined;
logger: AstroIntegrationLogger; logger: AstroIntegrationLogger;
}) => void | Promise<void>; }) => void | Promise<void>;
@ -3140,8 +3140,8 @@ export interface AstroIntegration {
name: string; name: string;
/** The different hooks available to extend. */ /** The different hooks available to extend. */
hooks: { hooks: {
[K in keyof Astro.IntegrationHooks]?: Astro.IntegrationHooks[K] [K in keyof Astro.IntegrationHooks]?: Astro.IntegrationHooks[K];
} & Partial<Record<string, unknown>> } & Partial<Record<string, unknown>>;
} }
export type RewritePayload = string | URL | Request; export type RewritePayload = string | URL | Request;