mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +03:00
chore: ts-ignore import issue + fix lint errors
This commit is contained in:
parent
8dbe938195
commit
49c23c9345
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 '.';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user