diff options
author | 2022-07-23 22:25:44 +0000 | |
---|---|---|
committer | 2022-07-23 22:25:44 +0000 | |
commit | 8c0818182208c85032aabf39c4fb71472fa28126 (patch) | |
tree | 974d0edff58d88f2447e6e278979914be33f2925 | |
parent | 6e27a5fdc21276cad26cd50e16a2709a40a7cbac (diff) | |
download | astro-8c0818182208c85032aabf39c4fb71472fa28126.tar.gz astro-8c0818182208c85032aabf39c4fb71472fa28126.tar.zst astro-8c0818182208c85032aabf39c4fb71472fa28126.zip |
[ci] format
-rw-r--r-- | examples/docs/src/components/RightSidebar/TableOfContents.tsx | 4 | ||||
-rw-r--r-- | packages/astro/src/@types/astro.ts | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/docs/src/components/RightSidebar/TableOfContents.tsx b/examples/docs/src/components/RightSidebar/TableOfContents.tsx index 1d74e820f..6348bdfd0 100644 --- a/examples/docs/src/components/RightSidebar/TableOfContents.tsx +++ b/examples/docs/src/components/RightSidebar/TableOfContents.tsx @@ -3,7 +3,9 @@ import { h, Fragment } from 'preact'; import { useState, useEffect, useRef } from 'preact/hooks'; import { MarkdownHeading } from 'astro'; -const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[] }> = ({ headings = [] }) => { +const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[] }> = ({ + headings = [], +}) => { const itemOffsets = useRef([]); const [activeId, setActiveId] = useState<string>(undefined); useEffect(() => { diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index dade40631..de3ad9954 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -15,7 +15,6 @@ import type { PageBuildData } from '../core/build/types'; import type { AstroConfigSchema } from '../core/config'; import type { ViteConfigWithSSR } from '../core/create-vite'; import type { AstroComponentFactory, Metadata } from '../runtime/server'; -export type { SSRManifest } from '../core/app/types'; export type { MarkdownHeading, MarkdownMetadata, @@ -24,6 +23,7 @@ export type { RemarkPlugins, ShikiConfig, } from '@astrojs/markdown-remark'; +export type { SSRManifest } from '../core/app/types'; export interface AstroBuiltinProps { 'client:load'?: boolean; |