UNPKG

1.29 kBTypeScriptView Raw
1import { MarkdownPageEvent } from '../events';
2import { OutputFileStrategy } from '../options/maps';
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 template: (data: MarkdownPageEvent<Model>) => string;
20}
21/**
22 * The model used to define the navigation structure.
23 *
24 */
25export interface NavigationItem {
26 title: string;
27 path?: string | null;
28 kind?: ReflectionKind;
29 children?: NavigationItem[];
30}
31/**
32 * Defines how reflections are mapped to urls.
33 */
34export interface TemplateMapping {
35 directory: string | null;
36 template: any;
37 kind: ReflectionKind;
38}
39/**
40 * Used internally when building the URL mapping.
41 */
42export interface UrlOption {
43 parentUrl?: string;
44 directory?: string | null;
45 forceDirectory?: boolean;
46 outputFileStrategy?: OutputFileStrategy;
47 entryModule?: string;
48 entryFileName?: string;
49}
50/**
51 * Defines the template type to use for rendering.
52 */
53export type RenderTemplate<T> = (data: T) => string;