Skip to content

Commit

Permalink
fix: add type for locale in @IsAlpha decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNameProvided committed Nov 20, 2022
1 parent 12f8d86 commit 72d1eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorator/string/IsAlpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function isAlpha(value: unknown, locale?: ValidatorJS.AlphaLocale): boole
* Checks if the string contains only letters (a-zA-Z).
* If given value is not a string, then it returns false.
*/
export function IsAlpha(locale?: string, validationOptions?: ValidationOptions): PropertyDecorator {
export function IsAlpha(locale?: ValidatorJS.AlphaLocale, validationOptions?: ValidationOptions): PropertyDecorator {
return ValidateBy(
{
name: IS_ALPHA,
Expand Down

0 comments on commit 72d1eed

Please sign in to comment.