[ci] format
This commit is contained in:
parent
6e27a5fdc2
commit
8c08181822
2 changed files with 4 additions and 2 deletions
|
@ -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(() => {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue