chore: add exports

This commit is contained in:
Roman Hotsiy 2017-04-18 16:46:19 +03:00
parent 4839b3ce69
commit b265e85927
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
4 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ export class JsonSchemaLazy implements OnDestroy, OnInit, AfterViewInit {
return schema && schema.$ref || this.pointer;
}
_loadAfterSelf() {
private _loadAfterSelf() {
var componentFactory = this.resolver.resolveComponentFactory(JsonSchema);
let contextInjector = this.location.parentInjector;
let compRef = this.location.createComponent(componentFactory, null, contextInjector, null);

View File

@ -4,9 +4,9 @@ import JsonPointer from '../../utils/JsonPointer';
import { BaseComponent, SpecManager } from '../base';
import { SchemaHelper } from '../../services/schema-helper.service';
import { OptionsService, MenuService } from '../../services/';
import { SwaggerBodyParameter } from '../../utils/swagger-typings';
interface OperationInfo {
export interface OperationInfo {
verb: string;
path: string;
info: {
@ -72,7 +72,7 @@ export class Operation extends BaseComponent implements OnInit {
return tags.filter(tag => tagsMap[tag] && tagsMap[tag]['x-traitTag']);
}
findBodyParam() {
findBodyParam():SwaggerBodyParameter {
let params = this.specMgr.getOperationParams(this.pointer);
let bodyParam = params.find(param => param.in === 'body');
return bodyParam;

View File

@ -74,7 +74,7 @@ export class RedocSearch implements OnInit {
item.pointers
);
this.marker.remark();
this.menu.activate(item.menuItem.flatIdx);
this.menu.activate(item.menuItem);
this.menu.scrollToActive();
}

View File

@ -10,7 +10,7 @@ import {
Response
} from '@types/swagger-schema-official';
interface RedocInjectedPointer {
export interface RedocInjectedPointer {
_pointer?: string;
}