Skip to content

quartz-community/types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published