ValidatorData: {
    id?: any;
    subscribe?: Function;
    validator: ValidatorFn;
    weight?: number;
}

Type declaration

  • Optional id?: any

    An ID associated with this validator. Can be used to remove the validator.

  • Optional subscribe?: Function

    Optional subscribe function following the Svelte store / subscribe pattern.

  • validator: ValidatorFn

    TJSPosition validator function that takes a TJSPositionDatainstance potentially modifying it or returning null if invalid.

  • Optional weight?: number

    A number between 0 and 1 inclusive to position this validator against others.