Update types and remove redundant error supression

This commit is contained in:
Johannes Loher 2021-02-07 23:16:47 +01:00
parent b727bacebd
commit e44ceca705
3 changed files with 2 additions and 5 deletions

2
package-lock.json generated
View file

@ -3113,7 +3113,7 @@
} }
}, },
"foundry-vtt-types": { "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", "from": "github:League-of-Foundry-Developers/foundry-vtt-types#foundry-0.7.9",
"dev": true, "dev": true,
"requires": { "requires": {

View file

@ -5,8 +5,5 @@ Hooks.once('init', () => {
}); });
function registerRiskModifier(): void { function registerRiskModifier(): void {
// TODO: Make it possible to extend MODIFIERS in foundry-vtt-types
// eslint-disable-next-line
// @ts-ignore
Die.MODIFIERS.ri = risk; Die.MODIFIERS.ri = risk;
} }

View file

@ -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 activeResults = this.results.filter((result) => result.active);
const activeValues = activeResults.map((result) => result.result); const activeValues = activeResults.map((result) => result.result);