chore: fix typings

This commit is contained in:
Roman Hotsiy 2018-01-21 21:51:38 +02:00
parent 195786e570
commit 53003fc076
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
4 changed files with 7 additions and 4 deletions

View File

@ -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 = {

View File

@ -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,

View File

@ -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 './';

View File

@ -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) {