Fix ActiveEffectConfig's constraints #6707
checks.yml
on: push
type check code base
20s
lint code base
35s
test code base
30s
Annotations
18 errors and 3 warnings
type check code base:
src/foundry/client/core/packages.d.mts#L149
Type of property 'packs' circularly references itself in mapped type '{ [Key in keyof Schema]: Schema[Key] extends DataField<any, any, any, infer PersistType extends unknown> ? Schema[Key] extends SchemaField<infer SubSchema extends DataSchema, any, any, any, any> ? RemoveIndexSignatures<...> : PersistType : never; }'.
|
type check code base:
src/foundry/client/core/packages.d.mts#L149
Type of property 'packs' circularly references itself in mapped type '{ [Key in keyof Schema]: Schema[Key] extends DataField<any, any, infer InitType, any> ? Schema[Key] extends EmbeddedDataField<infer Model extends Any, any, any, any, any> ? Model : Schema[Key] extends SchemaField<...> ? RemoveIndexSignatures<...> : InitType : never; }'.
|
type check code base:
src/foundry/client/core/packages.d.mts#L149
Type of property 'packs' circularly references itself in mapped type '{ [Key in keyof Schema]?: Schema[Key] extends DataField<any, infer AssignType, any, any> ? Schema[Key] extends SchemaField<infer SubSchema extends DataSchema, any, any, any, any> ? EmptyObject extends RemoveIndexSignatures<...> ? RemoveIndexSignatures<...> | ... 1 more ... | undefined : RemoveIndexSignatures<...> : ...'.
|
type check code base:
src/foundry/common/packages/base-package.d.mts#L519
Type '"id"' cannot be used to index type 'this'.
|
type check code base
Process completed with exit code 2.
|
tests/foundry/client/config.test-d.ts:
tests/foundry/client/config.test-d.ts#L5
TypeCheckError: Argument of type 'string' is not assignable to parameter of type 'never'.
❯ tests/foundry/client/config.test-d.ts:5:41
|
tests/foundry/client/game.test-d.ts:
tests/foundry/client/game.test-d.ts#L5
TypeCheckError: Type 'CombatEncounters | undefined' does not satisfy the constraint 'never'.
Type 'undefined' is not assignable to type 'never'.
❯ tests/foundry/client/game.test-d.ts:5:43
|
tests/foundry/client/head.test-d.ts:
tests/foundry/client/head.test-d.ts#L6
TypeCheckError: Type 'MainMenu | undefined' does not satisfy the constraint 'never'.
Type 'undefined' is not assignable to type 'never'.
❯ tests/foundry/client/head.test-d.ts:6:37
|
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/common/abstract/data.mjs.test-d.ts:
tests/foundry/common/abstract/data.mjs.test-d.ts#L18
TypeCheckError: Type 'string | undefined' does not satisfy the constraint 'StrictEqualUsingTSInternalIdenticalToOperator<{ [Key in keyof Schema] Schema[Key] extends DataField<any, any, infer InitType, any> ? Schema[Key] extends EmbeddedDataField<infer Model extends Any, any, any, any, any> ? Model Schema[Key] extends SchemaField<...> ? RemoveIndexSignatures<...> InitType never; }["g...'.
Type 'undefined' is not assignable to type 'StrictEqualUsingTSInternalIdenticalToOperator<{ [Key in keyof Schema] Schema[Key] extends DataField<any, any, infer InitType, any> ? Schema[Key] extends EmbeddedDataField<infer Model extends Any, any, any, any, any> ? Model Schema[Key] extends SchemaField<...> ? RemoveIndexSignatures<...> InitType never; }["g...'.
❯ tests/foundry/common/abstract/data.mjs.test-d.ts:18:54
|
tests/foundry/common/abstract/document.mjs.test-d.ts:
tests/foundry/common/abstract/document.mjs.test-d.ts#L12
TypeCheckError: Type 'ActiveEffect' does not satisfy the constraint '{ link "Expected string, Actual never"; description "Expected string, Actual never"; uuid "Expected string, Actual never"; origin "Expected string, Actual never" | "Expected null, Actual never" | "Expected undefined, Actual never"; ... 82 more ...; _getSourceName "Expected function, Actual never"; }'.
❯ tests/foundry/common/abstract/document.mjs.test-d.ts:12:44
|
tests/foundry/common/abstract/document.mjs.test-d.ts:
tests/foundry/common/abstract/document.mjs.test-d.ts#L23
TypeCheckError: Property 'effects' does not exist on type 'RemoveIndexSignatures<{ [x string] unknown; }>'.
❯ tests/foundry/common/abstract/document.mjs.test-d.ts:23:37
|
tests/foundry/common/abstract/document.mjs.test-d.ts:
tests/foundry/common/abstract/document.mjs.test-d.ts#L23
TypeCheckError: Type 'RemoveIndexSignatures<{ key string; value string; mode InitializedType<{ integer true; initial 2; label "EFFECT.ChangeMode"; }>; priority InitializedType<DefaultOptions>; }>[]' does not satisfy the constraint 'never'.
❯ tests/foundry/common/abstract/document.mjs.test-d.ts:23:71
|
tests/foundry/common/abstract/document.mjs.test-d.ts:
tests/foundry/common/abstract/document.mjs.test-d.ts#L24
TypeCheckError: Property 'effects' does not exist on type 'RemoveIndexSignatures<{ [x string] unknown; }>'.
❯ tests/foundry/common/abstract/document.mjs.test-d.ts:24:32
|
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#L1192
Definition for rule '@typescript-eslint/no-empty-object-type' was not found
|
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/
|