mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Improves docs epxerience for interfaces / type aliases that are merged with a namespace. PR Close #64747
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
import {InterfaceEntry} from '../entities.mjs';
|
|
import {InterfaceEntryRenderable} from '../entities/renderables.mjs';
|
|
import {addRenderableCodeToc} from './code-transforms.mjs';
|
|
import {
|
|
addHtmlAdditionalLinks,
|
|
addHtmlDescription,
|
|
addHtmlJsDocTagComments,
|
|
addHtmlUsageNotes,
|
|
setEntryFlags,
|
|
} from './jsdoc-transforms.mjs';
|
|
import {addRenderableMembers} from './member-transforms.mjs';
|
|
import {addModuleName} from './module-name.mjs';
|
|
import {addRepo} from './repo.mjs';
|
|
|
|
/** Given an unprocessed interface entry, get the fully renderable interface entry. */
|
|
export async function getInterfaceRenderable(
|
|
entry: InterfaceEntry,
|
|
moduleName: string,
|
|
repo: string,
|
|
): Promise<InterfaceEntryRenderable> {
|
|
return setEntryFlags(
|
|
await addRenderableCodeToc(
|
|
await addRenderableMembers(
|
|
addHtmlAdditionalLinks(
|
|
addHtmlUsageNotes(
|
|
addHtmlJsDocTagComments(
|
|
addHtmlDescription(addRepo(addModuleName(entry, moduleName), repo)),
|
|
),
|
|
),
|
|
),
|
|
entry.name,
|
|
),
|
|
),
|
|
);
|
|
}
|