Update types and remove redundant error supression
This commit is contained in:
parent
b727bacebd
commit
e44ceca705
3 changed files with 2 additions and 5 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -3113,7 +3113,7 @@
|
|||
}
|
||||
},
|
||||
"foundry-vtt-types": {
|
||||
"version": "github:League-of-Foundry-Developers/foundry-vtt-types#836f1384c2d6b1b6633184626c5dfcfa24f76d27",
|
||||
"version": "github:League-of-Foundry-Developers/foundry-vtt-types#3b1c676dd46b632b808386e74e959393856e25bf",
|
||||
"from": "github:League-of-Foundry-Developers/foundry-vtt-types#foundry-0.7.9",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
|
|
@ -5,8 +5,5 @@ Hooks.once('init', () => {
|
|||
});
|
||||
|
||||
function registerRiskModifier(): void {
|
||||
// TODO: Make it possible to extend MODIFIERS in foundry-vtt-types
|
||||
// eslint-disable-next-line
|
||||
// @ts-ignore
|
||||
Die.MODIFIERS.ri = risk;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export function risk(this: Die): void {
|
||||
export function risk(this: DiceTerm): void | DiceTerm {
|
||||
const activeResults = this.results.filter((result) => result.active);
|
||||
const activeValues = activeResults.map((result) => result.result);
|
||||
|
||||
|
|
Reference in a new issue