UNPKG

@aws-sdk/client-documentation-generator

Version:

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-documentation-generator/latest.svg)](https://www.npmjs.com/package/@aws-sdk/client-documentation-generator) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-documentation-generato

29 lines (28 loc) 1.25 kB
import { __decorate, __extends } from "tslib"; import { Component, RendererComponent } from "typedoc/dist/lib/output/components"; import { RendererEvent } from "typedoc/dist/lib/output/events"; var SdkClientRemoveNavigatorPlugin = (function (_super) { __extends(SdkClientRemoveNavigatorPlugin, _super); function SdkClientRemoveNavigatorPlugin() { return _super !== null && _super.apply(this, arguments) || this; } SdkClientRemoveNavigatorPlugin.prototype.initialize = function () { var _a; this.navigationPlugin = this.owner.application.renderer.getComponent("navigation"); this.listenTo(this.owner, (_a = {}, _a[RendererEvent.BEGIN] = this.onRenderedBegin, _a)); }; SdkClientRemoveNavigatorPlugin.prototype.onRenderedBegin = function (event) { var navigationItem = this.navigationPlugin.navigation; if (!navigationItem) { return; } navigationItem.children = []; }; SdkClientRemoveNavigatorPlugin = __decorate([ Component({ name: "SdkClientRemoveNavigator" }) ], SdkClientRemoveNavigatorPlugin); return SdkClientRemoveNavigatorPlugin; }(RendererComponent)); export { SdkClientRemoveNavigatorPlugin };