Fixed createCollapsibleModifierSections typing

This commit is contained in:
thepaperpilot 2022-05-01 14:46:23 -05:00
parent ade00f2ebd
commit 7eaae981d8

View file

@ -25,6 +25,7 @@ import { Modifier } from "game/modifiers";
import { Persistent, persistent } from "game/persistence"; import { Persistent, persistent } from "game/persistence";
import player from "game/player"; import player from "game/player";
import Decimal, { DecimalSource, format } from "util/bignum"; import Decimal, { DecimalSource, format } from "util/bignum";
import { WithRequired } from "util/common";
import { import {
Computable, Computable,
convertComputable, convertComputable,
@ -194,7 +195,7 @@ export function createCollapsibleModifierSections(
sections: { sections: {
title: string; title: string;
subtitle?: string; subtitle?: string;
modifier: Required<Modifier>; modifier: WithRequired<Modifier, "description">;
base?: Computable<DecimalSource>; base?: Computable<DecimalSource>;
unit?: string; unit?: string;
baseText?: Computable<CoercableComponent>; baseText?: Computable<CoercableComponent>;