mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 01:37:32 +03:00 
			
		
		
		
	chore: fix typings
This commit is contained in:
		
							parent
							
								
									195786e570
								
							
						
					
					
						commit
						53003fc076
					
				| 
						 | 
					@ -10,7 +10,7 @@ import { SchemaHelper } from './schema-helper.service';
 | 
				
			||||||
import { AppStateService } from './app-state.service';
 | 
					import { AppStateService } from './app-state.service';
 | 
				
			||||||
import { LazyTasksService } from '../shared/components/LazyFor/lazy-for';
 | 
					import { LazyTasksService } from '../shared/components/LazyFor/lazy-for';
 | 
				
			||||||
import { JsonPointer, MarkdownHeading, StringMap } from '../utils/';
 | 
					import { JsonPointer, MarkdownHeading, StringMap } from '../utils/';
 | 
				
			||||||
import * as slugify from 'slugify';
 | 
					import slugify from 'slugify';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const CHANGE = {
 | 
					const CHANGE = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,7 +3,7 @@ import { AppStateService } from './app-state.service';
 | 
				
			||||||
import { SchemaNormalizer } from './schema-normalizer.service';
 | 
					import { SchemaNormalizer } from './schema-normalizer.service';
 | 
				
			||||||
import { JsonPointer, groupBy, SpecManager, StringMap, snapshot, MarkdownHeading } from '../utils/';
 | 
					import { JsonPointer, groupBy, SpecManager, StringMap, snapshot, MarkdownHeading } from '../utils/';
 | 
				
			||||||
import { operations as swaggerOperations } from '../utils/swagger-defs';
 | 
					import { operations as swaggerOperations } from '../utils/swagger-defs';
 | 
				
			||||||
import * as slugify from 'slugify';
 | 
					import slugify from 'slugify';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
  SwaggerSpec,
 | 
					  SwaggerSpec,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
'use strict';
 | 
					'use strict';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { Injectable } from '@angular/core';
 | 
					import { Injectable } from '@angular/core';
 | 
				
			||||||
import * as slugify from 'slugify';
 | 
					import slugify from 'slugify';
 | 
				
			||||||
import * as Remarkable from 'remarkable';
 | 
					import * as Remarkable from 'remarkable';
 | 
				
			||||||
import { StringMap } from './';
 | 
					import { StringMap } from './';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -66,7 +66,10 @@ export class SpecManager {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* calculate common used values */
 | 
					  /* calculate common used values */
 | 
				
			||||||
  init() {
 | 
					  init() {
 | 
				
			||||||
    let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : {};
 | 
					    let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : {
 | 
				
			||||||
 | 
					      protocol: undefined,
 | 
				
			||||||
 | 
					      host: undefined
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
    let schemes = this._schema.schemes;
 | 
					    let schemes = this._schema.schemes;
 | 
				
			||||||
    let protocol;
 | 
					    let protocol;
 | 
				
			||||||
    if (!schemes || !schemes.length) {
 | 
					    if (!schemes || !schemes.length) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user