fvtt-types
Version:
TypeScript type definitions for Foundry VTT
35 lines (24 loc) • 721 B
text/typescript
import type { InexactPartial } from "#utils";
import type RollTerm from "./term.d.mts";
/**
* A type of RollTerm used to represent strings which have not yet been matched.
*/
declare class StringTerm extends RollTerm {
constructor({ term, options }: StringTerm.TermData);
term: string;
/**
* @defaultValue `["term"]`
*/
static SERIALIZE_ATTRIBUTES: string[];
override get expression(): string;
override get total(): string;
override get isDeterministic(): boolean;
evaluate(options?: InexactPartial<RollTerm.EvaluationOptions>): never;
}
declare namespace StringTerm {
interface TermData {
term: string;
options?: RollTerm.Options | undefined;
}
}
export default StringTerm;