This repository has been archived on 2026-08-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pi-web/pi-web-plugins/relays/vendor/marked.esm.d.ts
T

29 lines
711 B
TypeScript

/**
* Minimal declarations for the vendored marked ESM build (./marked.esm.js).
* Covers only the surface markdownDocument.ts uses; widen it if usage grows.
* The plugin build copies the .js verbatim and skips this file, so these
* declarations exist for tsc and editor tooling only.
*/
export interface MarkedHtmlToken {
text: string;
}
export interface MarkedRenderer {
html: (token: MarkedHtmlToken) => string;
}
export interface MarkedParseOptions {
async?: false;
breaks?: boolean;
gfm?: boolean;
renderer?: MarkedRenderer;
}
export interface Marked {
Renderer: new () => MarkedRenderer;
parse(source: string, options?: MarkedParseOptions): string;
}
export const marked: Marked;