Fix coding style

This commit is contained in:
2023-10-26 16:57:09 +07:00
parent bd407bb933
commit b0703ffdd3
3 changed files with 25 additions and 14 deletions
+11 -4
View File
@@ -1,8 +1,8 @@
import { TKeyValue, TPropValues, TStateSchema } from '../globals/types';
export const VALUE = 'value';
export const ERROR = 'error';
export const REQUIRED_FIELD_ERROR = 'This is required field';
const VALUE = 'value';
const ERROR = 'error';
const REQUIRED_FIELD_ERROR = 'This is required field';
function isBool(value: unknown) {
return typeof value === 'boolean';
@@ -27,4 +27,11 @@ const getPropValues = (stateSchema: TStateSchema, prop?: TPropValues) => {
}, {} as TKeyValue);
};
export { isObject, isRequired, getPropValues };
export {
isObject,
isRequired,
getPropValues,
VALUE,
ERROR,
REQUIRED_FIELD_ERROR,
};