diff --git a/README.md b/README.md index 4be4fd16..198d8a60 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,7 @@ You can use all of the following options with standalone version on tag * `onlyRequiredInSamples` - shows only required fields in request samples. * `jsonSampleExpandLevel` - set the default expand level for JSON payload samples (responses and request body). Special value 'all' expands all levels. The default value is `2`. * `menuToggle` - if true clicking second time on expanded menu item will collapse it, default `false` +* `enableConsole` - you should set true if you want to use the built-in console, default `false` * `expandDefaultServerVariables` - enable expanding default server variables, default `false` * `theme` - ReDoc theme. Not documented yet. For details check source code: [theme.ts](https://github.com/Redocly/redoc/blob/master/src/theme.ts) diff --git a/src/components/Console/ConsoleViewer.tsx b/src/components/Console/ConsoleViewer.tsx index f5ec4019..38fd3d75 100644 --- a/src/components/Console/ConsoleViewer.tsx +++ b/src/components/Console/ConsoleViewer.tsx @@ -1,9 +1,8 @@ import { observer } from 'mobx-react'; import * as React from 'react'; -import { SecuritySchemeModel } from '../../../typings/services/models'; import { SubmitButton } from '../../common-elements/buttons'; import { FlexLayoutReverse } from '../../common-elements/panels'; -import { FieldModel, OperationModel, SecuritySchemesModel } from '../../services/models'; +import { FieldModel, OperationModel, SecuritySchemeModel, SecuritySchemesModel } from '../../services/models'; import { ConsoleResponse } from '../ConsoleResponse/Response'; import { ConsoleEditor } from './ConsoleEditor'; diff --git a/typings/styled-patch.d.ts b/typings/styled-patch.d.ts deleted file mode 100644 index 53dbdb73..00000000 --- a/typings/styled-patch.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import * as styledComponents from 'styled-components'; - -// FIXME -declare module 'styled-components' { - export interface ThemedStyledFunction< - C extends keyof JSX.IntrinsicElements | React.ComponentType, - T extends object, - O extends object = {}, - A extends keyof any = never - > extends ThemedStyledFunctionBase { - withConfig(config: any): any; - // tslint:enable:unified-signatures - } - - interface ThemedStyledComponentsModule { - keyframes( - strings: TemplateStringsArray | string[], - ...interpolations: SimpleInterpolation[] - ): Keyframes; - } - - export interface BaseThemedCssFunction { -

( - first: - | TemplateStringsArray - | CSSObject - | InterpolationFunction> - | string[], - ...interpolations: Array>> - ): FlattenInterpolation>; - } -}