Skip to content

Commit 90ef8df

Browse files
committed
Update some stuff
1 parent 729e671 commit 90ef8df

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@
4040
"husky": "^4.2.5",
4141
"tsdx": "^0.14.1",
4242
"tslib": "^2.0.0",
43-
"typescript": "^3.9.2"
43+
"typescript": "^4.9.4"
4444
},
4545
"dependencies": {
4646
"@babel/traverse": "^7.12.9",
4747
"@babel/types": "^7.10.3",
4848
"babel-plugin-macros": "^2.8.0"
49+
},
50+
"resolutions": {
51+
"typescript": "^4.9.4"
4952
}
5053
}

src/convertFunctionCallToStringMacro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type macro = () => string;
1212
type Argument = t.CallExpression["arguments"][number];
1313

1414
const transformArgs = (args: Argument[]) => {
15-
const literals = args.filter(function nonLiterals<T>(
15+
const literals = args.filter(function nonLiterals<T extends object>(
1616
argument: T
1717
): argument is Extract<T, { value: any }> {
1818
return "value" in argument;

yarn.lock

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6246,20 +6246,15 @@ tslib@2.0.1:
62466246
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.0.1.tgz#410eb0d113e5b6356490eec749603725b021b43e"
62476247
integrity sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ==
62486248

6249-
tslib@^1.10.0:
6249+
tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3:
62506250
version "1.14.1"
62516251
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
62526252
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
62536253

6254-
tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3:
6255-
version "1.13.0"
6256-
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043"
6257-
integrity sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==
6258-
62596254
tslib@^2.0.0:
6260-
version "2.0.0"
6261-
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.0.0.tgz#18d13fc2dce04051e20f074cc8387fd8089ce4f3"
6262-
integrity sha512-lTqkx847PI7xEDYJntxZH89L2/aXInsyF2luSafe/+0fHOMjlBNXdH6th7f70qxLDhul7KZK0zC8V5ZIyHl0/g==
6255+
version "2.4.1"
6256+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e"
6257+
integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==
62636258

62646259
tsutils@^3.17.1:
62656260
version "3.17.1"
@@ -6314,10 +6309,10 @@ typedarray-to-buffer@^3.1.5:
63146309
dependencies:
63156310
is-typedarray "^1.0.0"
63166311

6317-
typescript@^3.7.3, typescript@^3.9.2:
6318-
version "3.9.2"
6319-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.2.tgz#64e9c8e9be6ea583c54607677dd4680a1cf35db9"
6320-
integrity sha512-q2ktq4n/uLuNNShyayit+DTobV2ApPEo/6so68JaD5ojvc/6GClBipedB9zNWYxRSAlZXAe405Rlijzl6qDiSw==
6312+
typescript@^3.7.3, typescript@^4.9.4:
6313+
version "4.9.4"
6314+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
6315+
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==
63216316

63226317
unicode-canonical-property-names-ecmascript@^1.0.4:
63236318
version "1.0.4"

0 commit comments

Comments
 (0)