Change type name

This commit is contained in:
2023-10-27 14:20:48 +07:00
parent cce36788ac
commit 28a375091b
+2 -2
View File
@@ -28,13 +28,13 @@ const getPropValues = (stateSchema: TStateSchema, prop?: TPropValues) => {
}, {} as TKeyValue); }, {} as TKeyValue);
}; };
type test = { type TValidator = {
validatorFunc: (value: string) => boolean; validatorFunc: (value: string) => boolean;
prop: string; prop: string;
required?: boolean; required?: boolean;
}; };
const addValidator = ({ validatorFunc, prop, required = true }: test) => { const addValidator = ({ validatorFunc, prop, required = true }: TValidator) => {
return { return {
required: required, required: required,
validator: { validator: {