0.1.0-Dev.7 • Published 2 years ago
@kilbergr/is-bigint v0.1.0-Dev.7
IsBigint
This a temporary fix for missing @IsBigint decorator from class-validator package.
The decorator works the same ways as the @IsNumber decorator from the same package.
This package becomes obsolete when the @IsBigint decorator is added to the class-validator package.
Please follow this pull request on the class-validator repository.
Installation
npm install @kilbergr/is-bigint class-validatorUsage
import { IsBigint } from '@kilbergr/is-bigint';
class MyClass {
@IsBigint()
myField: bigint;
}0.1.0-Dev.7
2 years ago