From bd3bed7f2780058329e46b5342788a048c6b1472 Mon Sep 17 00:00:00 2001 From: matthewp Date: Tue, 2 Nov 2021 17:46:23 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/runtime/server/hydration.ts | 5 ++--- packages/astro/src/runtime/server/index.ts | 2 -- packages/astro/src/runtime/server/util.ts | 3 +-- 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): 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) { return output; } - - // Adds CSS variables to an inline style tag export function defineStyleVars(selector: string, vars: Record) { 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 = {}; @@ -27,4 +26,4 @@ export function serializeListValue(value: any) { } } } -} \ No newline at end of file +}