1.0.0 • Published 5 years ago
@zjutkzwayne/notnull v1.0.0
NotNull
A ts decorator that avoid undefined parameters
Download
npm i @zjutkzwayne/notnull --save
Usage
import {required, notNull} from "../index";
class Clz {
@notNull
foo(n: number, @required m: string) {
return n * 2;
}
}
console.log(new Clz().foo(10));
1.0.0
5 years ago