summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/runtime/server/hydration.ts5
-rw-r--r--packages/astro/src/runtime/server/index.ts2
-rw-r--r--packages/astro/src/runtime/server/util.ts3
3 files changed, 3 insertions, 7 deletions
diff --git a/packages/astro/src/runtime/server/hydration.ts b/packages/astro/src/runtime/server/hydration.ts
index 3b52efd74..dfd48abad 100644
--- a/packages/astro/src/runtime/server/hydration.ts
+++ b/packages/astro/src/runtime/server/hydration.ts
@@ -24,7 +24,7 @@ const customGenerator: astring.Generator = {
};
// Serializes props passed into a component so that they can be reused during hydration.
-// The value is any
+// The value is any
export function serializeProps(value: any) {
return generate(valueToEstree(value), {
generator: customGenerator,
@@ -83,7 +83,6 @@ export function extractDirectives(inputProps: Record<string | number, any>): Ext
return extracted;
}
-
interface HydrateScriptOptions {
renderer: any;
astroId: string;
@@ -122,4 +121,4 @@ setup("${astroId}", {${metadata.hydrateArgs ? `value: ${JSON.stringify(metadata.
};
return hydrationScript;
-} \ No newline at end of file
+}
diff --git a/packages/astro/src/runtime/server/index.ts b/packages/astro/src/runtime/server/index.ts
index 03ac314c3..b1c231f4b 100644
--- a/packages/astro/src/runtime/server/index.ts
+++ b/packages/astro/src/runtime/server/index.ts
@@ -225,8 +225,6 @@ export function spreadAttributes(values: Record<any, any>) {
return output;
}
-
-
// Adds CSS variables to an inline style tag
export function defineStyleVars(selector: string, vars: Record<any, any>) {
let output = '\n';
diff --git a/packages/astro/src/runtime/server/util.ts b/packages/astro/src/runtime/server/util.ts
index ff1dd55d3..9de0dabab 100644
--- a/packages/astro/src/runtime/server/util.ts
+++ b/packages/astro/src/runtime/server/util.ts
@@ -1,4 +1,3 @@
-
export function serializeListValue(value: any) {
const hash: Record<string, any> = {};
@@ -27,4 +26,4 @@ export function serializeListValue(value: any) {
}
}
}
-} \ No newline at end of file
+}