Skip to content

Fix all other compilation errors #6714

Fix all other compilation errors

Fix all other compilation errors #6714

Triggered via push October 19, 2024 23:44
Status Failure
Total duration 42s
Artifacts

checks.yml

on: push
type check code base
21s
type check code base
lint code base
32s
lint code base
test code base
32s
test code base
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 4 warnings
tests/foundry/client/config.test-d.ts: tests/foundry/client/config.test-d.ts#L3
TypeCheckError: Types of construct signatures are incompatible. Type 'new (formula string, data? {} | undefined, options? InexactPartial<EvaluationOptions> | undefined) => D20Roll' is not assignable to type 'new <D extends object = {}>(formula string, data? D | undefined, options? InexactPartial<EvaluationOptions> | undefined) => Roll<D>'. Type 'D20Roll' is not assignable to type 'Roll<D>'. Type '{}' is not assignable to type 'D'. '{}' is assignable to the constraint of type 'D', but 'D' could be instantiated with a different subtype of constraint 'object'. ❯ tests/foundry/client/config.test-d.ts:3:1
tests/foundry/client/game.test-d.ts: tests/foundry/client/game.test-d.ts#L34
TypeCheckError: Type 'Module' does not satisfy the constraint '{ [x string] never; [__PackageSchema] { [x string] { options any; required boolean; nullable boolean; initial any; readonly boolean; label string; hint string; validationError string; ... 8 more ...; toObject (value any) => any; }; [x number] { ...; }; }; }'. Index signature for type 'string' is missing in type 'Module'. ❯ tests/foundry/client/game.test-d.ts:34:66
tests/foundry/prosemirror/prosemirror.test-d.ts: tests/foundry/prosemirror/prosemirror.test-d.ts#L8
TypeCheckError: Property 'defaultSchema' does not exist on type 'typeof import("/home/runner/work/foundry-vtt-types/foundry-vtt-types/src/foundry/prosemirror/prosemirror")'. ❯ tests/foundry/prosemirror/prosemirror.test-d.ts:8:26
tests/foundry/prosemirror/prosemirror.test-d.ts: tests/foundry/prosemirror/prosemirror.test-d.ts#L8
TypeCheckError: Type 'Schema<any, any>' does not satisfy the constraint 'never'. ❯ tests/foundry/prosemirror/prosemirror.test-d.ts:8:55
tests/foundry/client/core/settings.test-d.ts: tests/foundry/client/core/settings.test-d.ts#L79
TypeCheckError: Type 'Promise<Actor>' does not satisfy the constraint '{ [toStringTag] string; then "Expected function, Actual function"; catch <TResult = never>(onrejected? ((reason any) => TResult | PromiseLike<TResult>) | null | undefined) => Promise<...>; finally "Expected function, Actual function"; }'. Types of property 'then' are incompatible. Type '<TResult1 = Actor, TResult2 = never>(onfulfilled? ((value Actor) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected? ((reason any) => TResult2 | PromiseLike<...>) | null | undefined) => Promise<...>' is not assignable to type '"Expected function, Actual function"'. ❯ tests/foundry/client/core/settings.test-d.ts:79:97
tests/foundry/client/core/settings.test-d.ts: tests/foundry/client/core/settings.test-d.ts#L80
TypeCheckError: Type 'Actor' does not satisfy the constraint '{ [__DocumentBrand] never; [__Schema] never; [__ConcreteMetadata] never; [__Parent] any; _id "Expected string, Actual never" | "Expected null, Actual never"; ... 121 more ...; TYPES never; }'. Type 'Actor' is missing the following properties from type '{ [__DocumentBrand] never; [__Schema] never; [__ConcreteMetadata] never; [__Parent] any; _id "Expected string, Actual never" | "Expected null, Actual never"; ... 121 more ...; TYPES never; }' [__DocumentBrand], get, hasSystemData, create, and 27 more. ❯ tests/foundry/client/core/settings.test-d.ts:80:73
tests/foundry/client/core/time.test-d.ts: tests/foundry/client/core/time.test-d.ts#L16
TypeCheckError: Type 'number' does not satisfy the constraint '"Expected number, Actual null"'. ❯ tests/foundry/client/core/time.test-d.ts:16:65
tests/foundry/client/pixi/board.test-d.ts: tests/foundry/client/pixi/board.test-d.ts#L5
TypeCheckError: Type 'ConstructorOf<CanvasLayer>' does not satisfy the constraint 'typeof CanvasLayer'. ❯ tests/foundry/client/pixi/board.test-d.ts:5:57
tests/foundry/client/pixi/board.test-d.ts: tests/foundry/client/pixi/board.test-d.ts#L5
TypeCheckError: Type 'ConstructorOf<CanvasLayer>' does not satisfy the constraint 'typeof CanvasLayer'. Type 'ConstructorOf<CanvasLayer>' is missing the following properties from type 'typeof CanvasLayer' layerOptions, instance, defaultSortableChildren, mixin, and 2 more. ❯ tests/foundry/client/pixi/board.test-d.ts:5:57
tests/foundry/client/pixi/board.test-d.ts: tests/foundry/client/pixi/board.test-d.ts#L5
TypeCheckError: Argument of type 'Layers' is not assignable to parameter of type 'Record<string, LayerDefinition<ConstructorOf<CanvasLayer>>>'. 'string' index signatures are incompatible. Type 'LayerDefinition<typeof CanvasLayer>' is not assignable to type 'LayerDefinition<ConstructorOf<CanvasLayer>>'. Type 'typeof CanvasLayer' is not assignable to type 'ConstructorOf<CanvasLayer>'. Cannot assign an abstract constructor type to a non-abstract constructor type. ❯ tests/foundry/client/pixi/board.test-d.ts:5:87
lint code base: src/foundry/client/pixi/perception/vision-mode.d.mts#L2
'DataField' is defined but never used. Allowed unused vars must match /^_/u
lint code base: src/foundry/common/data/fields.d.mts#L1209
Definition for rule '@typescript-eslint/no-empty-object-type' was not found
lint code base: src/foundry/common/types.d.mts#L27
Definition for rule '@typescript-eslint/no-empty-object-type' was not found
lint code base: tests/foundry/common/documents/combatant.test-d.ts#L7
Replace `Promise<Document.Stored<Combatant>[]>` with `⏎··Promise<Document.Stored<Combatant>[]>⏎`
lint code base
Process completed with exit code 1.
type check code base
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test code base
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint code base
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint code base: src/foundry/client/core/settings.d.mts#L3
Using exported name 'DataModel' as identifier for default export