mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
chore: add exports
This commit is contained in:
parent
4839b3ce69
commit
b265e85927
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
Response
|
||||
} from '@types/swagger-schema-official';
|
||||
|
||||
interface RedocInjectedPointer {
|
||||
export interface RedocInjectedPointer {
|
||||
_pointer?: string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user