chore: add missing dist type declaration files

The build output .d.ts files were not committed, only the JS files.
Both are needed for consumers to import the package with type support.
This commit is contained in:
saberzero1 2026-03-16 19:21:14 +01:00
parent 5fa8d0b3ee
commit e7904abba5
No known key found for this signature in database
3 changed files with 73 additions and 0 deletions

10
dist/components/index.d.ts vendored Normal file
View file

@ -0,0 +1,10 @@
import { QuartzComponent } from '@quartz-community/types';
interface ExampleComponentOptions {
prefix?: string;
suffix?: string;
className?: string;
}
declare const _default: (opts?: ExampleComponentOptions) => QuartzComponent;
export { _default as ExampleComponent, type ExampleComponentOptions };

21
dist/index.d.ts vendored Normal file
View file

@ -0,0 +1,21 @@
import { QuartzTransformerPlugin, QuartzFilterPlugin, QuartzEmitterPlugin } from '@quartz-community/types';
export { PageGenerator, PageMatcher, QuartzComponent, QuartzComponentConstructor, QuartzComponentProps, QuartzEmitterPlugin, QuartzFilterPlugin, QuartzPageTypePlugin, QuartzPageTypePluginInstance, QuartzTransformerPlugin, StringResource, VirtualPage } from '@quartz-community/types';
import { ExampleTransformerOptions, ExampleFilterOptions, ExampleEmitterOptions } from './types.js';
export { ExampleComponent, ExampleComponentOptions } from './components/index.js';
/**
* Example transformer showing remark/rehype usage and resource injection.
*/
declare const ExampleTransformer: QuartzTransformerPlugin<Partial<ExampleTransformerOptions>>;
/**
* Example filter that removes drafts, tagged pages, and excluded path prefixes.
*/
declare const ExampleFilter: QuartzFilterPlugin<Partial<ExampleFilterOptions>>;
/**
* Example emitter that writes a JSON manifest of content metadata.
*/
declare const ExampleEmitter: QuartzEmitterPlugin<Partial<ExampleEmitterOptions>>;
export { ExampleEmitter, ExampleEmitterOptions, ExampleFilter, ExampleFilterOptions, ExampleTransformer, ExampleTransformerOptions };

42
dist/types.d.ts vendored Normal file
View file

@ -0,0 +1,42 @@
export { BuildCtx, CSSResource, ChangeEvent, JSResource, PageGenerator, PageMatcher, ProcessedContent, QuartzEmitterPlugin, QuartzEmitterPluginInstance, QuartzFilterPlugin, QuartzFilterPluginInstance, QuartzPageTypePlugin, QuartzPageTypePluginInstance, QuartzPluginData, QuartzTransformerPlugin, QuartzTransformerPluginInstance, StaticResources, VirtualPage } from '@quartz-community/types';
interface ExampleTransformerOptions {
/** Token used to highlight text, defaults to ==highlight== */
highlightToken: string;
/** Add a CSS class to all headings in the rendered HTML. */
headingClass: string;
/** Enable remark-gfm for tables/task lists. */
enableGfm: boolean;
/** Enable adding slug IDs to headings. */
addHeadingSlugs: boolean;
}
interface ExampleFilterOptions {
/** Allow pages marked draft: true to publish. */
allowDrafts: boolean;
/** Exclude pages that contain any of these frontmatter tags. */
excludeTags: string[];
/** Exclude paths that start with any of these prefixes (relative to content root). */
excludePathPrefixes: string[];
}
interface ExampleEmitterOptions {
/** Filename to emit at the site root. */
manifestSlug: string;
/** Whether to include the frontmatter block in the manifest. */
includeFrontmatter: boolean;
/** Extra metadata to write at the top level of the manifest. */
metadata: Record<string, unknown>;
/** Optional hook to transform the emitted manifest JSON string. */
transformManifest?: (json: string) => string;
/** Add a custom class to the emitted manifest <script> tag if used in HTML. */
manifestScriptClass?: string;
}
interface ExampleComponentOptions {
/** Text to prefix before the title */
prefix?: string;
/** Text to suffix after the title */
suffix?: string;
/** CSS class name to apply */
className?: string;
}
export type { ExampleComponentOptions, ExampleEmitterOptions, ExampleFilterOptions, ExampleTransformerOptions };