Skip to content

Commit

Permalink
fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
Melvynx committed Mar 5, 2021
1 parent a8ee752 commit d0ae8c9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
7 changes: 0 additions & 7 deletions example/src/Exemples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Block } from 'baseui/block'
import { Heading, HeadingLevel } from 'baseui/heading'
import { StyledLink } from 'baseui/link'
import InteractiveExemple from './exemples/InteractiveExemple'
import CustomizeExemple from './exemples/CustomizeExemple'
import ImageExemple from './exemples/ImageExemple'
import ExempleWrapper from './exemples/ExempleWrapper'
import { useStyletron } from 'baseui'
Expand Down Expand Up @@ -65,12 +64,6 @@ export default function Exemples() {
<ImageExemple />
</>
</ExempleWrapper>
<ExempleWrapper
title='Exemple 3'
description='It is easy to add styles to internal elements. Here you can see how the component works, hiding the cards that exceed.'
>
<CustomizeExemple />
</ExempleWrapper>
</HeadingLevel>
</Block>
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"babel-eslint": "^10.0.3",
"@babel/eslint-parser": "^10.0.3",
"cross-env": "^7.0.2",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.18.2",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const callAll = (...fns: Array<Function | undefined>) => (
...args: any
) => fns.forEach((fn: Function) => fn && fn(...args))
) => fns.forEach((fn: any) => fn && fn(...args))
21 changes: 19 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@
semver "^6.3.0"
source-map "^0.5.0"

"@babel/eslint-parser@^10.0.3":
version "7.13.8"
resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.13.8.tgz#6f2bde6b0690fcc0598b4869fc7c8e8b55b17687"
integrity sha512-XewKkiyukrGzMeqToXJQk6hjg2veI9SNQElGzAoAjKxYCLbgcVX4KA2WhoyqMon9N4RMdCZhNTJNOBcp9spsiw==
dependencies:
eslint-scope "5.1.0"
eslint-visitor-keys "^1.3.0"
semver "^6.3.0"

"@babel/generator@^7.13.0", "@babel/generator@^7.4.0", "@babel/generator@^7.9.0":
version "7.13.0"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.0.tgz#bd00d4394ca22f220390c56a0b5b85568ec1ec0c"
Expand Down Expand Up @@ -2479,7 +2488,7 @@ babel-code-frame@^6.22.0:
esutils "^2.0.2"
js-tokens "^3.0.2"

[email protected], babel-eslint@^10.0.3:
[email protected]:
version "10.1.0"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232"
integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==
Expand Down Expand Up @@ -4601,6 +4610,14 @@ eslint-plugin-react@^7.17.0:
resolve "^1.18.1"
string.prototype.matchall "^4.0.2"

[email protected]:
version "5.1.0"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5"
integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==
dependencies:
esrecurse "^4.1.0"
estraverse "^4.1.1"

eslint-scope@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848"
Expand Down Expand Up @@ -4631,7 +4648,7 @@ eslint-utils@^2.0.0:
dependencies:
eslint-visitor-keys "^1.1.0"

eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0:
eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
Expand Down

0 comments on commit d0ae8c9

Please sign in to comment.