UNPKG

@ckeditor/typedoc-plugins

Version:
19 lines (18 loc) 1.09 kB
/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. */ import { type Application } from "typedoc"; import "./augmentation.js"; /** * The `typedoc-plugin-interface-augmentation-fixer` tries to fix an interface, that has been extended (augmented) from the outside (from * another module) in the re-exported "index.ts" file. When the extending "declare module ..." declaration contains the full package name, * it points to the "index.ts" file instead of the actual source file. In such case Typedoc adds new properties to the interface, but not * in place where it has been defined, but in the "index.ts" file, where it is re-exported. Then, the generated output contains duplicated * interface definitions, with only one containing all properties. * * This plugin works as follows: * - Copies the externally added properties to the source definition. * - Replaces the duplicated interface with a reference to the source definition. */ export declare function typeDocInterfaceAugmentationFixer(app: Application): void;