UNPKG

1.34 kBTypeScriptView Raw
1import { MarkdownPageEvent } from '../events/index.js';
2import { OutputFileStrategy } from '../options/maps.js';
3import { Options, ReflectionKind } from 'typedoc';
4/**
5 * The model used to define the package metadata when in packages mode.
6 *
7 */
8export interface PackageMetaData {
9 description: string;
10 options: Options;
11}
12/**
13 * The model used to define the URL mapping structure.
14 *
15 */
16export interface UrlMapping</** @ignore */ Model> {
17 url: string;
18 model: Model;
19 group?: string;
20 template: (data: MarkdownPageEvent<Model>) => string;
21}
22/**
23 * The model used to define the navigation structure.
24 *
25 */
26export interface NavigationItem {
27 title: string;
28 path?: string | null;
29 kind?: ReflectionKind;
30 children?: NavigationItem[];
31}
32/**
33 * Defines how reflections are mapped to urls.
34 */
35export interface TemplateMapping {
36 directory: string | null;
37 template: any;
38 kind: ReflectionKind;
39}
40/**
41 * Used internally when building the URL mapping.
42 */
43export interface UrlOption {
44 parentUrl?: string;
45 directory?: string | null;
46 forceDirectory?: boolean;
47 outputFileStrategy?: OutputFileStrategy;
48 entryModule?: string;
49 entryFileName?: string;
50 group?: string;
51}
52/**
53 * Defines the template type to use for rendering.
54 */
55export type RenderTemplate<T> = (data: T) => string;