From 8c0818182208c85032aabf39c4fb71472fa28126 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Sat, 23 Jul 2022 22:25:44 +0000 Subject: [PATCH] [ci] format --- examples/docs/src/components/RightSidebar/TableOfContents.tsx | 4 +++- 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(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;