Skip to content

Commit 4d8db56

Browse files
committed
Minor typings changes
1 parent c152781 commit 4d8db56

3 files changed

Lines changed: 16 additions & 20 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"css-what": ">=6.1.0",
6969
"nth-check": ">=2.1.1",
7070
"semver": "^7.6.3",
71-
"typescript": "^4.9.5"
71+
"typescript": "^4.9.5",
72+
"postcss": "8.4.31"
7273
},
7374
"dependencies": {},
7475
"devDependencies": {

packages/babel-plugin/src/utils/traverse-expression/traverse-call-expression.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,17 @@ export const traverseCallExpression = (
103103
// Loop through the parameters. Right now only identifier `param` and object pattern `{ param }` or `{ param: p }`
104104
// are supported.
105105
params
106-
.filter((param) => t.isIdentifier(param) || t.isObjectPattern(param))
106+
.filter(
107+
(param): param is t.Identifier | t.ObjectPattern =>
108+
t.isIdentifier(param) || t.isObjectPattern(param)
109+
)
107110
.forEach((param, index) => {
108111
const evaluatedArgument = evaluatedArguments[index];
109112

110113
// Push evaluated args and params in the IIFE's scope by created a local variable
111114
// `const param = 'evaluated arg value'`
112115
arrowFunctionExpressionPath.scope.push({
113-
id: param,
116+
id: param as unknown as t.LVal,
114117
init: evaluatedArgument,
115118
kind: 'const',
116119
});

yarn.lock

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13304,7 +13304,7 @@ nan@^2.12.1:
1330413304
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
1330513305
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
1330613306

13307-
nanoid@^3.3.1, nanoid@^3.3.11, nanoid@^3.3.2, nanoid@^3.3.4:
13307+
nanoid@^3.3.1, nanoid@^3.3.2, nanoid@^3.3.4, nanoid@^3.3.6:
1330813308
version "3.3.11"
1330913309
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.11.tgz#4f4f112cefbe303202f2199838128936266d185b"
1331013310
integrity sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==
@@ -15084,22 +15084,14 @@ postcss-values-parser@^6.0.2:
1508415084
is-url-superb "^4.0.0"
1508515085
quote-unquote "^1.0.0"
1508615086

15087-
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.36, postcss@^7.0.5, postcss@^7.0.6:
15088-
version "7.0.39"
15089-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309"
15090-
integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==
15087+
postcss@8.4.31, postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.36, postcss@^7.0.5, postcss@^7.0.6, postcss@^8, postcss@^8.2.15, postcss@^8.2.4, postcss@^8.4.19, postcss@^8.4.21, postcss@^8.4.27, postcss@^8.4.31, postcss@^8.4.35:
15088+
version "8.4.31"
15089+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
15090+
integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
1509115091
dependencies:
15092-
picocolors "^0.2.1"
15093-
source-map "^0.6.1"
15094-
15095-
postcss@^8, postcss@^8.2.15, postcss@^8.2.4, postcss@^8.4.19, postcss@^8.4.21, postcss@^8.4.27, postcss@^8.4.31, postcss@^8.4.35:
15096-
version "8.5.6"
15097-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.6.tgz#2825006615a619b4f62a9e7426cc120b349a8f3c"
15098-
integrity sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==
15099-
dependencies:
15100-
nanoid "^3.3.11"
15101-
picocolors "^1.1.1"
15102-
source-map-js "^1.2.1"
15092+
nanoid "^3.3.6"
15093+
picocolors "^1.0.0"
15094+
source-map-js "^1.0.2"
1510315095

1510415096
posthtml-insert-at@^0.2.7:
1510515097
version "0.2.7"
@@ -16857,7 +16849,7 @@ source-list-map@^2.0.0, source-list-map@^2.0.1:
1685716849
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
1685816850
integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==
1685916851

16860-
source-map-js@^1.0.1, source-map-js@^1.2.1:
16852+
source-map-js@^1.0.1, source-map-js@^1.0.2:
1686116853
version "1.2.1"
1686216854
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
1686316855
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==

0 commit comments

Comments
 (0)