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; return schema && schema.$ref || this.pointer;
} }
_loadAfterSelf() { private _loadAfterSelf() {
var componentFactory = this.resolver.resolveComponentFactory(JsonSchema); var componentFactory = this.resolver.resolveComponentFactory(JsonSchema);
let contextInjector = this.location.parentInjector; let contextInjector = this.location.parentInjector;
let compRef = this.location.createComponent(componentFactory, null, contextInjector, null); 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 { BaseComponent, SpecManager } from '../base';
import { SchemaHelper } from '../../services/schema-helper.service'; import { SchemaHelper } from '../../services/schema-helper.service';
import { OptionsService, MenuService } from '../../services/'; import { OptionsService, MenuService } from '../../services/';
import { SwaggerBodyParameter } from '../../utils/swagger-typings';
export interface OperationInfo {
interface OperationInfo {
verb: string; verb: string;
path: string; path: string;
info: { info: {
@ -72,7 +72,7 @@ export class Operation extends BaseComponent implements OnInit {
return tags.filter(tag => tagsMap[tag] && tagsMap[tag]['x-traitTag']); return tags.filter(tag => tagsMap[tag] && tagsMap[tag]['x-traitTag']);
} }
findBodyParam() { findBodyParam():SwaggerBodyParameter {
let params = this.specMgr.getOperationParams(this.pointer); let params = this.specMgr.getOperationParams(this.pointer);
let bodyParam = params.find(param => param.in === 'body'); let bodyParam = params.find(param => param.in === 'body');
return bodyParam; return bodyParam;

View File

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

View File

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