No description
Find a file
2026-04-07 21:34:50 +02:00
dist feat: add vfile DataMap augmentation, SimpleSlug, and ValidDateType 2026-04-03 15:34:43 +02:00
src feat: add vfile DataMap augmentation, SimpleSlug, and ValidDateType 2026-04-03 15:34:43 +02:00
.gitignore chore: commit dist/ and remove prepare script 2026-03-14 21:30:16 +01:00
globals.d.ts feat: add ContentIndex/ContentDetails types and globals.d.ts for centralized declarations 2026-03-16 18:50:58 +01:00
LICENSE Initial commit 2026-02-07 20:31:27 +01:00
package-lock.json chore: updated dependencies 2026-04-07 21:34:50 +02:00
package.json chore: updated dependencies 2026-04-07 21:34:50 +02:00
README.md Initial implementation of @quartz-community/types package 2026-02-07 20:39:05 +01:00
tsconfig.json Consolidate all types into single index.ts with proper exports 2026-02-13 13:18:01 +01:00
tsup.config.ts Initial implementation of @quartz-community/types package 2026-02-07 20:39:05 +01:00

@quartz-community/types

Type definitions for Quartz community plugins. This package provides TypeScript interfaces and types that mirror the internal Quartz types, enabling external plugins to have full type safety without depending on the core Quartz package.

Installation

npm install @quartz-community/types

Usage

import {
  QuartzComponent,
  QuartzComponentProps,
  ExplorerOptions,
} from "@quartz-community/types";

const MyComponent: QuartzComponent = (props: QuartzComponentProps) => {
  // Component implementation
};

MyComponent.css = `
  .my-component { /* styles */ }
`;

MyComponent.afterDOMLoaded = `
  // Client-side script
`;

Included Types

  • Component Types: QuartzComponent, QuartzComponentProps, StringResource
  • Plugin Types: QuartzTransformerPlugin, QuartzFilterPlugin, QuartzEmitterPlugin
  • Data Types: FileTrieNode, ContentIndex, ContentIndexEntry
  • Component Options: ExplorerOptions, GraphOptions, SearchOptions, D3Config
  • Utility Types: HTMLAttributes, EventHandler, CleanupFunction, ClassValue

License

MIT