class-validator
class-validator copied to clipboard
fix: @IsMACAddress({}) optionsArg set to any type in VSCode
Description
When using @IsMACAddress({})
decorator the optionsArg
is set to any
in VSCode even though isMacAddress.d.ts
has the correct type:
I don't know if this is related to VSCode only or is a more general issue.
Minimal code-snippet showcasing the problem
class Test {
// {} does not show any type hints
@IsMACAddress({})
address!: string;
}
Expected behavior
optionsArgs
showing ValidatorJS.IsMACAddressOptions
options.
Actual behavior
No type hint and optionsArg
is set to any
: