diff options
author | 2021-11-02 17:46:23 +0000 | |
---|---|---|
committer | 2021-11-02 17:46:23 +0000 | |
commit | bd3bed7f2780058329e46b5342788a048c6b1472 (patch) | |
tree | d44ce543fa247f1ec4ffa38e9a4814daa407d0bb | |
parent | 94f35dbfbc3280c3ebde900d25cd573299b883a0 (diff) | |
download | astro-bd3bed7f2780058329e46b5342788a048c6b1472.tar.gz astro-bd3bed7f2780058329e46b5342788a048c6b1472.tar.zst astro-bd3bed7f2780058329e46b5342788a048c6b1472.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/runtime/server/hydration.ts | 5 | ||||
-rw-r--r-- | packages/astro/src/runtime/server/index.ts | 2 | ||||
-rw-r--r-- | 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<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 +} |