You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In which branch or foundry version does the problem occur?
0.8.9
Describe the wrong type
With the new Exact Optional Property Types in Typescript 4.4, the type definition for MergeObjectProperty in helpers.mjs.d.ts is broken. This is because the use of Omit loses the optionality of the members of MergeObjectOptions, causing them to all be required.
To Reproduce
Set compilerOptions.exactOptionalPropertyTypesAdd to true in tsconfig.json and compile anything that uses that type (such as anything extending from ActorSheet).
In which branch or foundry version does the problem occur?
0.8.9
Describe the wrong type
With the new Exact Optional Property Types in Typescript 4.4, the type definition for
MergeObjectProperty
in helpers.mjs.d.ts is broken. This is because the use ofOmit
loses the optionality of the members ofMergeObjectOptions
, causing them to all be required.To Reproduce
Set
compilerOptions.exactOptionalPropertyTypesAdd
totrue
in tsconfig.json and compile anything that uses that type (such as anything extending fromActorSheet
).Expected behavior
The type definitions compile.
Additional context
See microsoft/TypeScript/pull/42524
The text was updated successfully, but these errors were encountered: