diff --git a/Target/Class/TypeDoc/Theme.d.ts b/Target/Class/TypeDoc/Theme.d.ts index 4e56809a..5b6b4042 100644 --- a/Target/Class/TypeDoc/Theme.d.ts +++ b/Target/Class/TypeDoc/Theme.d.ts @@ -5,13 +5,13 @@ declare const default_base: typeof DefaultTheme; */ export default class extends default_base implements Type { getRenderContext: (Event: PageEvent) => Context; - buildUrls(...[Reflection, URLs]: Parameters): UrlMapping[]; - _getMapping: (Reflection: DeclarationReflection) => Mapping | undefined; + buildUrls(...[Reflection, URLs]: Parameters): any; + _Mapping: (Reflection: DeclarationReflection) => Mapping | undefined; Mapping: Mapping[]; } import type Context from "../../Interface/TypeDoc/Context.js"; import type Type from "../../Interface/TypeDoc/Theme.js"; -import { DeclarationReflection, DefaultTheme, PageEvent, ReflectionKind, UrlMapping, type RenderTemplate } from "typedoc"; +import { DeclarationReflection, DefaultTheme, PageEvent, ReflectionKind, type RenderTemplate } from "typedoc"; export declare const _Context: typeof import("./Context.js").default; /** * Defines a mapping of a {@link Models.Kind} to a template file. diff --git a/Target/Class/TypeDoc/Theme.js b/Target/Class/TypeDoc/Theme.js index 2bd380af..5232cce0 100644 --- a/Target/Class/TypeDoc/Theme.js +++ b/Target/Class/TypeDoc/Theme.js @@ -1 +1 @@ -class s extends(await import("typedoc")).DefaultTheme{getRenderContext=(...[e])=>new o(this,e,this.application.options);buildUrls(...[e,i]){const n=this._getMapping(e);if(n){if(!e.url||!a.URL_PREFIX.test(e.url)){const r=[n.directory,`${a.getUrl(e)}.html`].join("/");i.push(new l(r,e,n.template)),e.url=r,e.hasOwnDocument=!0}e.traverse(r=>(r instanceof p?this.buildUrls(r,i):a.applyAnchorUrl(r,e),!0))}else e.parent&&a.applyAnchorUrl(e,e.parent);return i}_getMapping=e=>this.Mapping.find(i=>e.kindOf(i.kind));Mapping=[{kind:[t.Class],directory:"Class",template:this.reflectionTemplate},{kind:[t.Interface],directory:"Interface",template:this.reflectionTemplate},{kind:[t.Enum],directory:"Enum",template:this.reflectionTemplate},{kind:[t.Namespace,t.Module],directory:"Module",template:this.reflectionTemplate},{kind:[t.TypeAlias],directory:"Type",template:this.reflectionTemplate},{kind:[t.Function],directory:"Function",template:this.reflectionTemplate},{kind:[t.Variable],directory:"Variable",template:this.reflectionTemplate}]}import{DeclarationReflection as p,DefaultTheme as a,ReflectionKind as t,UrlMapping as l}from"typedoc";const{default:o}=await import("./Context.js");export{o as _Context,s as default}; +class s extends(await import("typedoc")).DefaultTheme{getRenderContext=(...[e])=>new o(this,e,this.application.options);buildUrls(...[e,i]){const n=this._Mapping(e);if(n){if(!e.url||!a.URL_PREFIX.test(e.url)){const r=[n.directory,`${a.getUrl(e)}.html`].join("/");i.push(new l(r,e,n.template)),e.url=r,e.hasOwnDocument=!0}e.traverse(r=>(r instanceof p?this.buildUrls(r,i):a.applyAnchorUrl(r,e),!0))}else e.parent&&a.applyAnchorUrl(e,e.parent);return i}_Mapping=e=>this.Mapping.find(i=>e.kindOf(i.kind));Mapping=[{kind:[t.Class],directory:"Class",template:this.reflectionTemplate},{kind:[t.Interface],directory:"Interface",template:this.reflectionTemplate},{kind:[t.Enum],directory:"Enum",template:this.reflectionTemplate},{kind:[t.Namespace,t.Module],directory:"Module",template:this.reflectionTemplate},{kind:[t.TypeAlias],directory:"Type",template:this.reflectionTemplate},{kind:[t.Function],directory:"Function",template:this.reflectionTemplate},{kind:[t.Variable],directory:"Variable",template:this.reflectionTemplate}]}import{DeclarationReflection as p,DefaultTheme as a,ReflectionKind as t,UrlMapping as l}from"typedoc";const{default:o}=await import("./Context.js");export{o as _Context,s as default}; diff --git a/Target/Interface/TypeDoc/Theme.d.ts b/Target/Interface/TypeDoc/Theme.d.ts index e734b57a..01019a2b 100644 --- a/Target/Interface/TypeDoc/Theme.d.ts +++ b/Target/Interface/TypeDoc/Theme.d.ts @@ -4,7 +4,7 @@ */ export default interface Type { getRenderContext: (Event: PageEvent) => Context; - buildURLs: (Reflection: DeclarationReflection, URLs: UrlMapping[]) => UrlMapping[]; + buildUrls: (Reflection: DeclarationReflection, URLs: UrlMapping[]) => UrlMapping[]; } import type Context from "./Context.js"; import type { DeclarationReflection, PageEvent, Reflection, UrlMapping } from "typedoc";