mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +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 { LazyTasksService } from '../shared/components/LazyFor/lazy-for';
|
||||
import { JsonPointer, MarkdownHeading, StringMap } from '../utils/';
|
||||
import * as slugify from 'slugify';
|
||||
import slugify from 'slugify';
|
||||
|
||||
|
||||
const CHANGE = {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { AppStateService } from './app-state.service';
|
|||
import { SchemaNormalizer } from './schema-normalizer.service';
|
||||
import { JsonPointer, groupBy, SpecManager, StringMap, snapshot, MarkdownHeading } from '../utils/';
|
||||
import { operations as swaggerOperations } from '../utils/swagger-defs';
|
||||
import * as slugify from 'slugify';
|
||||
import slugify from 'slugify';
|
||||
|
||||
import {
|
||||
SwaggerSpec,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import * as slugify from 'slugify';
|
||||
import slugify from 'slugify';
|
||||
import * as Remarkable from 'remarkable';
|
||||
import { StringMap } from './';
|
||||
|
||||
|
|
|
@ -66,7 +66,10 @@ export class SpecManager {
|
|||
|
||||
/* calculate common used values */
|
||||
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 protocol;
|
||||
if (!schemes || !schemes.length) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user