0.1.0-Dev.7 • Published 11 months ago

@kilbergr/is-bigint v0.1.0-Dev.7

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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;
}
0.1.0-Dev.7

11 months ago