mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 07:46:15 -04:00
refactor(dx): generic data transformer
This commit is contained in:
parent
9fa4c26929
commit
05f06f6a07
5 changed files with 78 additions and 50 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue