mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-15 10:42:22 +03:00
chore: fix declarations
This commit is contained in:
parent
e13d172502
commit
8afae474c7
|
@ -38,14 +38,14 @@
|
||||||
"bundle:standalone": "webpack --env.standalone --mode=production",
|
"bundle:standalone": "webpack --env.standalone --mode=production",
|
||||||
"bundle:lib": "webpack --mode=production",
|
"bundle:lib": "webpack --mode=production",
|
||||||
"bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:standalone",
|
"bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:standalone",
|
||||||
"declarations": "rimraf typings && tsc --emitDeclarationOnly -p tsconfig.lib.json",
|
"declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && cp -R src/types typings/",
|
||||||
"stats": "webpack --env.standalone --json --profile --mode=production > stats.json",
|
"stats": "webpack --env.standalone --json --profile --mode=production > stats.json",
|
||||||
"prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
|
"prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
|
||||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
||||||
"lint": "tslint --project tsconfig.json",
|
"lint": "tslint --project tsconfig.json",
|
||||||
"benchmark": "node ./benchmark/benchmark.js",
|
"benchmark": "node ./benchmark/benchmark.js",
|
||||||
"start:demo": "webpack-dev-server --hot --config demo/webpack.config.ts --mode=development",
|
"start:demo": "webpack-dev-server --hot --config demo/webpack.config.ts --mode=development",
|
||||||
"compile:cli": "tsc cli/index.ts --target es6 --module commonjs --types yargs",
|
"compile:cli": "tsc custom.d.ts cli/index.ts --target es6 --module commonjs --types yargs",
|
||||||
"build:demo": "webpack --mode=production --config demo/webpack.config.ts",
|
"build:demo": "webpack --mode=production --config demo/webpack.config.ts",
|
||||||
"deploy:demo": "npm run build:demo && deploy-to-gh-pages --update demo/dist",
|
"deploy:demo": "npm run build:demo && deploy-to-gh-pages --update demo/dist",
|
||||||
"license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD-2-Clause;BSD-3-Clause' --summary"
|
"license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD-2-Clause;BSD-3-Clause' --summary"
|
||||||
|
|
|
@ -21,10 +21,9 @@ const {
|
||||||
injectGlobal,
|
injectGlobal,
|
||||||
keyframes,
|
keyframes,
|
||||||
ThemeProvider,
|
ThemeProvider,
|
||||||
withTheme,
|
} = (styledComponents as any) as styledComponents.ThemedStyledComponentsModule<
|
||||||
} = (styledComponents as styledComponents.ThemedStyledComponentsModule<
|
ResolvedThemeInterface
|
||||||
any
|
>;
|
||||||
>) as styledComponents.ThemedStyledComponentsModule<ResolvedThemeInterface>;
|
|
||||||
|
|
||||||
export const media = {
|
export const media = {
|
||||||
lessThan(breakpoint) {
|
lessThan(breakpoint) {
|
||||||
|
@ -54,6 +53,6 @@ export const media = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export { css, injectGlobal, keyframes, ThemeProvider, withTheme, withProps };
|
export { css, injectGlobal, keyframes, ThemeProvider, withProps };
|
||||||
export { StyledComponentClass } from 'styled-components';
|
export { StyledComponentClass } from 'styled-components';
|
||||||
export default styled;
|
export default styled;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user