We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const MyCustomValidator = (value: string | number): boolean => { return typeof value === 'string' || typeof value === 'number'; } CustomStringValueObject.create("this is valid", { MAX: 21, MIN: 1, VALIDATOR: MyCustomValidator }); CustomStringValueObject.create("this is an invalid value", { MAX: 5, MIN: 1, VALIDATOR: MyCustomValidator }); CustomStringValueObject.create("this is valid", { MAX: 21, MIN: 1 }); CustomNumberValueObject.create(200, { MAX: 5, MIN: 1, VALIDATOR: MyCustomValidator }); CustomNumberValueObject.create(2, { MAX: 5, MIN: 1, VALIDATOR: MyCustomValidator }); CustomNumberValueObject.create(2, { MAX: 5, MIN: 1, });
The text was updated successfully, but these errors were encountered:
feat(utils): added custom string value object
1fcba5e
custom value object #58
test(utils): added custom string value object
d81ea42
feat(utils): added custom number value object
184aa2a
test(utils): added custom number value object
9109ec3
No branches or pull requests
The text was updated successfully, but these errors were encountered: