@kilbergr/is-bigint
v0.1.0-Dev.7
Published
IsBigint is an workaround for the lack of IsBigInt decorator in class-validator
Downloads
70
Readme
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-validator
Usage
import { IsBigint } from '@kilbergr/is-bigint';
class MyClass {
@IsBigint()
myField: bigint;
}