explorer/dist/index.d.ts
saberzero1 87cc7d6d9e
chore: commit dist/ and remove prepare script
Pre-built output is now committed to the repository so that
Quartz can skip the build step during plugin installation.
The prepare script is removed to prevent redundant builds
when installing from npm/git.
2026-03-14 21:58:29 +01:00

23 lines
774 B
TypeScript

import { QuartzComponent } from '@quartz-community/types';
interface FileTrieNode {
slugSegment?: string;
slugSegments?: string[];
displayName?: string;
isFolder: boolean;
data: Record<string, unknown> | null;
children: FileTrieNode[];
}
interface ExplorerOptions {
title?: string;
folderDefaultState: "collapsed" | "open";
folderClickBehavior: "collapse" | "link";
useSavedState: boolean;
sortFn?: (a: FileTrieNode, b: FileTrieNode) => number;
filterFn?: (node: FileTrieNode) => boolean;
mapFn?: (node: FileTrieNode) => FileTrieNode;
order?: Array<"filter" | "map" | "sort">;
}
declare const _default: (userOpts?: Partial<ExplorerOptions>) => QuartzComponent;
export { _default as Explorer, type ExplorerOptions };