mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +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 { renderToString } from 'react-dom/server';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { ServerStyleSheet } from 'styled-components';
|
import { ServerStyleSheet } from 'styled-components';
|
||||||
|
// @ts-ignore
|
||||||
import { Redoc, createStore } from '../../';
|
import { Redoc, createStore } from '../../';
|
||||||
import { readFileSync } from 'fs';
|
import { readFileSync } from 'fs';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { ContentItems } from '../ContentItems/ContentItems';
|
||||||
import { OptionsProvider } from '../OptionsProvider';
|
import { OptionsProvider } from '../OptionsProvider';
|
||||||
import { SideMenu } from '../SideMenu/SideMenu';
|
import { SideMenu } from '../SideMenu/SideMenu';
|
||||||
import { StickyResponsiveSidebar } from '../StickySidebar/StickyResponsiveSidebar';
|
import { StickyResponsiveSidebar } from '../StickySidebar/StickyResponsiveSidebar';
|
||||||
import { ApiContent, RedocWrap, BackgroundStub } from './elements';
|
import { ApiContent, BackgroundStub, RedocWrap } from './elements';
|
||||||
|
|
||||||
import { SearchBox } from '../SearchBox/SearchBox';
|
import { SearchBox } from '../SearchBox/SearchBox';
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,9 @@ export class ApiInfoModel implements OpenAPIInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
get downloadLink() {
|
get downloadLink() {
|
||||||
if (this.options.hideDownloadButton) return undefined;
|
if (this.options.hideDownloadButton) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.parser.specUrl) {
|
if (this.parser.specUrl) {
|
||||||
return this.parser.specUrl;
|
return this.parser.specUrl;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import * as React from 'react';
|
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 { AppStore, StoreState } from './services/AppStore';
|
||||||
import { querySelector } from './utils/dom';
|
|
||||||
import { debugTime, debugTimeEnd } from './utils/debug';
|
import { debugTime, debugTimeEnd } from './utils/debug';
|
||||||
|
import { querySelector } from './utils/dom';
|
||||||
|
|
||||||
export { Redoc, AppStore } from '.';
|
export { Redoc, AppStore } from '.';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user