mirror of
https://github.com/quartz-community/breadcrumbs.git
synced 2026-07-22 02:50:29 +00:00
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:
parent
3c689b362a
commit
e85ef37971
3 changed files with 7 additions and 7 deletions
2
dist/components/index.js.map
vendored
2
dist/components/index.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue