Skip to content

Commit

Permalink
chore: fix declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed May 18, 2018
1 parent e13d172 commit 8afae47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
"bundle:standalone": "webpack --env.standalone --mode=production",
"bundle:lib": "webpack --mode=production",
"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",
"prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
"lint": "tslint --project tsconfig.json",
"benchmark": "node ./benchmark/benchmark.js",
"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",
"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"
Expand Down
9 changes: 4 additions & 5 deletions src/styled-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ const {
injectGlobal,
keyframes,
ThemeProvider,
withTheme,
} = (styledComponents as styledComponents.ThemedStyledComponentsModule<
any
>) as styledComponents.ThemedStyledComponentsModule<ResolvedThemeInterface>;
} = (styledComponents as any) as styledComponents.ThemedStyledComponentsModule<
ResolvedThemeInterface
>;

export const media = {
lessThan(breakpoint) {
Expand Down Expand Up @@ -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 default styled;

0 comments on commit 8afae47

Please sign in to comment.