From 2d7d4d3409b6736442c3b5236e27d1961e27c8db Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 29 Mar 2017 11:25:30 +0300 Subject: [PATCH] fix: fix anchor links accidentally broken --- lib/components/Method/method.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/components/Method/method.ts b/lib/components/Method/method.ts index 4407f16e..7bb553d7 100644 --- a/lib/components/Method/method.ts +++ b/lib/components/Method/method.ts @@ -14,9 +14,9 @@ interface MethodInfo { description: string; }; bodyParam: any; - summary: any; - anchor: any; - externalDocs: { + summary: string; + anchor: string; + externalDocs?: { url: string; description?: string; } @@ -60,8 +60,8 @@ export class Method extends BaseComponent implements OnInit { }; } - buildAnchor() { - this.menu.hashFor(this.pointer, + buildAnchor():string { + return this.menu.hashFor(this.pointer, { type: 'method', operationId: this.operationId, pointer: this.pointer }, this.parentTagId ); }