Skip to content

Partial conversion of arrows.js to ts #2457

Partial conversion of arrows.js to ts

Partial conversion of arrows.js to ts #2457

Triggered via pull request January 22, 2025 23:55
Status Success
Total duration 34s
Artifacts 1

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
build: dist/client/scripts/esm/chess/logic/organizedlines.ts#L381
Type 'Vec2 | undefined' is not assignable to type 'Vec2'.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L12
Could not find a declaration file for module '../chess/selection.js'. '/home/runner/work/infinitechess.org/infinitechess.org/dist/client/scripts/esm/game/chess/selection.js' implicitly has an 'any' type.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L30
Could not find a declaration file for module './bufferdata.js'. '/home/runner/work/infinitechess.org/infinitechess.org/dist/client/scripts/esm/game/rendering/bufferdata.js' implicitly has an 'any' type.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L224
'X' is possibly 'undefined'.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L224
'X' is possibly 'undefined'.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L225
Argument of type 'unknown' is not assignable to parameter of type 'Piece[]'.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L287
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ [vec2Key: `${number},${number}`]: { [lineKey: string]: { l?: Piece | undefined; r?: Piece | undefined; }; }; }'.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L293
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ l?: Piece | undefined; r?: Piece | undefined; }'.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L315
Element implicitly has an 'any' type because index expression is not of type 'number'.
build: dist/client/scripts/esm/game/rendering/arrows.ts#L335
Parameter 'arrows' implicitly has an 'any' type.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
Build
2.95 MB