[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 { useState, useEffect, useRef } from 'preact/hooks';
|
||||||
import { MarkdownHeading } from 'astro';
|
import { MarkdownHeading } from 'astro';
|
||||||
|
|
||||||
const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[] }> = ({ headings = [] }) => {
|
const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[] }> = ({
|
||||||
|
headings = [],
|
||||||
|
}) => {
|
||||||
const itemOffsets = useRef([]);
|
const itemOffsets = useRef([]);
|
||||||
const [activeId, setActiveId] = useState<string>(undefined);
|
const [activeId, setActiveId] = useState<string>(undefined);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
@ -15,7 +15,6 @@ import type { PageBuildData } from '../core/build/types';
|
||||||
import type { AstroConfigSchema } from '../core/config';
|
import type { AstroConfigSchema } from '../core/config';
|
||||||
import type { ViteConfigWithSSR } from '../core/create-vite';
|
import type { ViteConfigWithSSR } from '../core/create-vite';
|
||||||
import type { AstroComponentFactory, Metadata } from '../runtime/server';
|
import type { AstroComponentFactory, Metadata } from '../runtime/server';
|
||||||
export type { SSRManifest } from '../core/app/types';
|
|
||||||
export type {
|
export type {
|
||||||
MarkdownHeading,
|
MarkdownHeading,
|
||||||
MarkdownMetadata,
|
MarkdownMetadata,
|
||||||
|
@ -24,6 +23,7 @@ export type {
|
||||||
RemarkPlugins,
|
RemarkPlugins,
|
||||||
ShikiConfig,
|
ShikiConfig,
|
||||||
} from '@astrojs/markdown-remark';
|
} from '@astrojs/markdown-remark';
|
||||||
|
export type { SSRManifest } from '../core/app/types';
|
||||||
|
|
||||||
export interface AstroBuiltinProps {
|
export interface AstroBuiltinProps {
|
||||||
'client:load'?: boolean;
|
'client:load'?: boolean;
|
||||||
|
|
Loading…
Reference in a new issue