mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-01 21:03:45 +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;
|
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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user