🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
25
node_modules/astro/dist/runtime/server/hydration.d.ts
generated
vendored
Normal file
25
node_modules/astro/dist/runtime/server/hydration.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import type { AstroComponentMetadata, SSRElement, SSRLoadedRenderer, SSRResult } from '../../@types/astro';
|
||||
export interface HydrationMetadata {
|
||||
directive: string;
|
||||
value: string;
|
||||
componentUrl: string;
|
||||
componentExport: {
|
||||
value: string;
|
||||
};
|
||||
}
|
||||
interface ExtractedProps {
|
||||
isPage: boolean;
|
||||
hydration: HydrationMetadata | null;
|
||||
props: Record<string | number | symbol, any>;
|
||||
}
|
||||
export declare function extractDirectives(inputProps: Record<string | number | symbol, any>, clientDirectives: SSRResult['clientDirectives']): ExtractedProps;
|
||||
interface HydrateScriptOptions {
|
||||
renderer: SSRLoadedRenderer;
|
||||
result: SSRResult;
|
||||
astroId: string;
|
||||
props: Record<string | number, any>;
|
||||
attrs: Record<string, string> | undefined;
|
||||
}
|
||||
/** For hydrated components, generate a <script type="module"> to load the component */
|
||||
export declare function generateHydrateScript(scriptOptions: HydrateScriptOptions, metadata: Required<AstroComponentMetadata>): Promise<SSRElement>;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue