mirror of
https://github.com/quartz-community/recent-notes.git
synced 2026-07-22 02:50:28 +00:00
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.
25 lines
786 B
TypeScript
25 lines
786 B
TypeScript
import { QuartzComponent } from '@quartz-community/types';
|
|
export { QuartzComponent, QuartzComponentProps, StringResource } from '@quartz-community/types';
|
|
|
|
interface QuartzPluginData {
|
|
slug?: string;
|
|
filePath?: string;
|
|
dates?: Record<string, Date>;
|
|
frontmatter?: {
|
|
title?: string;
|
|
tags?: string[];
|
|
[key: string]: unknown;
|
|
};
|
|
[key: string]: unknown;
|
|
}
|
|
interface RecentNotesOptions {
|
|
title?: string;
|
|
limit: number;
|
|
linkToMore: string | false;
|
|
showTags: boolean;
|
|
filter: (f: QuartzPluginData) => boolean;
|
|
sort: (f1: QuartzPluginData, f2: QuartzPluginData) => number;
|
|
}
|
|
declare const _default: (userOpts?: Partial<RecentNotesOptions>) => QuartzComponent;
|
|
|
|
export { _default as RecentNotes, type RecentNotesOptions };
|