chore: ts-ignore import issue + fix lint errors

This commit is contained in:
Roman Hotsiy 2018-03-07 17:21:45 +02:00
parent 8dbe938195
commit 49c23c9345
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
4 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,7 @@
import { renderToString } from 'react-dom/server';
import * as React from 'react';
import { ServerStyleSheet } from 'styled-components';
// @ts-ignore
import { Redoc, createStore } from '../../';
import { readFileSync } from 'fs';
import { resolve } from 'path';

View File

@ -10,7 +10,7 @@ import { ContentItems } from '../ContentItems/ContentItems';
import { OptionsProvider } from '../OptionsProvider';
import { SideMenu } from '../SideMenu/SideMenu';
import { StickyResponsiveSidebar } from '../StickySidebar/StickyResponsiveSidebar';
import { ApiContent, RedocWrap, BackgroundStub } from './elements';
import { ApiContent, BackgroundStub, RedocWrap } from './elements';
import { SearchBox } from '../SearchBox/SearchBox';

View File

@ -17,7 +17,9 @@ export class ApiInfoModel implements OpenAPIInfo {
}
get downloadLink() {
if (this.options.hideDownloadButton) return undefined;
if (this.options.hideDownloadButton) {
return undefined;
}
if (this.parser.specUrl) {
return this.parser.specUrl;

View File

@ -1,10 +1,10 @@
import * as React from 'react';
import { render, hydrate as hydrateComponent } from 'react-dom';
import { hydrate as hydrateComponent, render } from 'react-dom';
import { RedocStandalone, Redoc } from './components/';
import { Redoc, RedocStandalone } from './components/';
import { AppStore, StoreState } from './services/AppStore';
import { querySelector } from './utils/dom';
import { debugTime, debugTimeEnd } from './utils/debug';
import { querySelector } from './utils/dom';
export { Redoc, AppStore } from '.';