refactor(dx): generic data transformer

This commit is contained in:
Corentin Thomasset 2023-04-10 16:34:10 +02:00 committed by Corentin THOMASSET
parent 9fa4c26929
commit 05f06f6a07
5 changed files with 78 additions and 50 deletions

View file

@ -3,7 +3,7 @@ import { reactive, watch, type Ref } from 'vue';
type ValidatorReturnType = unknown;
interface UseValidationRule<T> {
export interface UseValidationRule<T> {
validator: (value: T) => ValidatorReturnType;
message: string;
}