@player-ui/player
Version:
11 lines • 433 B
TypeScript
import type { ValidatorFunction } from "./types";
/** A registry that tracks validators */
export declare class ValidatorRegistry {
private registry;
constructor();
/** Use the given validator name to fetch the handler */
get(name: string): ValidatorFunction | undefined;
/** Register a new validator */
register<T>(name: string, handler: ValidatorFunction<T>): void;
}
//# sourceMappingURL=registry.d.ts.map