@civ-clone/core-rule
Version:
This component contains the framework for `Rule`s. These are comprised of `Criterion`s and `Effect`s with optional `Priority`s.
12 lines (11 loc) • 300 B
TypeScript
export interface ICriterion<C extends any[] = any[]> {
validate(...args: C): boolean;
}
export declare class Criterion<C extends any[] = any[]>
implements ICriterion<C>
{
#private;
constructor(criterion?: (...args: C) => boolean);
validate(...args: C): boolean;
}
export default Criterion;