refactor: import QuartzComponentConstructor from upstream types

Use the QuartzComponentConstructor type exported from
@quartz-community/types rather than redeclaring it locally. Upstream
has declared this type since the package was published; the local
redeclaration predated the import and is now redundant.
This commit is contained in:
saberzero1 2026-04-16 15:23:42 +02:00
parent 3c689b362a
commit e85ef37971
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -1,13 +1,13 @@
import type { QuartzComponent, QuartzComponentProps } from "@quartz-community/types";
import type {
QuartzComponent,
QuartzComponentConstructor,
QuartzComponentProps,
} from "@quartz-community/types";
import { classNames } from "../util/lang";
import { resolveRelative, simplifySlug } from "../util/path";
import { FileTrieNode, trieFromAllFiles } from "../util/fileTrie";
import style from "./styles/breadcrumbs.scss";
type QuartzComponentConstructor<Options extends object | undefined = undefined> = (
opts: Options,
) => QuartzComponent;
type CrumbData = {
displayName: string;
path: string;