Skip to content

refactor: rewriting blockUser and util to TS #706

refactor: rewriting blockUser and util to TS

refactor: rewriting blockUser and util to TS #706

Triggered via push May 13, 2024 01:48
Status Failure
Total duration 1m 12s
Artifacts

ci.yml

on: push
install-and-test
1m 4s
install-and-test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
install-and-test: src/scripts/blockUser.ts#L41
'e' is of type 'unknown'.
install-and-test: src/scripts/blockUser.ts#L64
Property 'articleId' does not exist on type '{}'.
install-and-test: src/scripts/blockUser.ts#L90
Type 'IterableIterator<[number, any]>' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.
install-and-test: src/scripts/blockUser.ts#L163
Property '_id' does not exist on type '{ _source: object; }'.
install-and-test: src/scripts/blockUser.ts#L164
Property 'articleReplies' does not exist on type '{}'.
install-and-test: src/scripts/blockUser.ts#L168
Parameter 'ar' implicitly has an 'any' type.
install-and-test: src/scripts/blockUser.ts#L173
Parameter 'ar' implicitly has an 'any' type.
install-and-test: src/scripts/blockUser.ts#L214
Property 'articleId' does not exist on type '{}'.
install-and-test: src/scripts/blockUser.ts#L214
Property 'replyId' does not exist on type '{}'.
install-and-test: src/scripts/blockUser.ts#L246
Type 'IterableIterator<[number, { articleId: any; replyId: any; }]>' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.
install-and-test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: FedericoCarboni/setup-ffmpeg@v2, actions/checkout@v3, actions/setup-node@v2, google-github-actions/auth@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
install-and-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
install-and-test: src/commandListener.ts#L1
'T' is defined but never used