mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
chore: fix lint issues
This commit is contained in:
parent
60169f2193
commit
9f636cc411
|
@ -29,4 +29,4 @@ export const REDOC_DIRECTIVES = [
|
|||
|
||||
export { ApiInfo, ApiLogo, JsonSchema, JsonSchemaLazy, ParamsList, RequestSamples, ResponsesList,
|
||||
ResponsesSamples, SchemaSample, SideMenu, OperationsList, Operation, Warnings, Redoc, SecurityDefinitions,
|
||||
LoadingBar, SideMenuItems, ExternalDocs, EndpointLink }
|
||||
LoadingBar, SideMenuItems, ExternalDocs, EndpointLink };
|
||||
|
|
|
@ -264,7 +264,7 @@ export class MenuService {
|
|||
if (namespace === 'section') {
|
||||
searchId = hash;
|
||||
} else {
|
||||
searchId = ptr || (namespace + '/' + sectionId);;
|
||||
searchId = ptr || (namespace + '/' + sectionId);
|
||||
}
|
||||
|
||||
idx = this.flatItems.findIndex(item => item.id === searchId);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
import { SchemaNormalizer } from './schema-normalizer.service';
|
||||
import { SpecManager } from '../utils/spec-manager';;
|
||||
import { SpecManager } from '../utils/spec-manager';
|
||||
import { OptionsService } from '../services/options.service';
|
||||
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ export class MdRenderer {
|
|||
} else {
|
||||
let content = tokens[idx + 1].content;
|
||||
if (tokens[idx].hLevel === 1 ) {
|
||||
this.currentTopHeading = this.saveHeading(content);;
|
||||
this.currentTopHeading = this.saveHeading(content);
|
||||
let id = this.currentTopHeading.id;
|
||||
return `<h${tokens[idx].hLevel} section="section/${id}">` +
|
||||
`<a class="share-link" href="#section/${id}"></a>` +
|
||||
|
|
|
@ -15,11 +15,11 @@ export interface RedocInjectedPointer {
|
|||
}
|
||||
|
||||
|
||||
export interface SwaggerOperation extends Operation, RedocInjectedPointer {};
|
||||
export interface SwaggerOperation extends Operation, RedocInjectedPointer {}
|
||||
export interface SwaggerBodyParameter extends BodyParameter, RedocInjectedPointer {}
|
||||
export interface SwaggerHeaderParameter extends HeaderParameter, RedocInjectedPointer {}
|
||||
export interface SwaggerQueryParameter extends QueryParameter, RedocInjectedPointer {}
|
||||
export interface SwaggerFormDataParameter extends FormDataParameter, RedocInjectedPointer {}
|
||||
export type SwaggerParameter = SwaggerBodyParameter | SwaggerHeaderParameter | SwaggerQueryParameter | SwaggerFormDataParameter;
|
||||
export interface SwaggerSchema extends Schema, RedocInjectedPointer {};
|
||||
export interface SwaggerSchema extends Schema, RedocInjectedPointer {}
|
||||
export { Spec as SwaggerSpec, Response as SwaggerResponse };
|
||||
|
|
Loading…
Reference in New Issue
Block a user