File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { routeMetaInfo } from "./core";
44import { get , unset } from "lodash" ;
55import { config } from "./config" ;
66import { ParametersException } from "./exception" ;
7+ import { extendedValidator } from "./extended-validator" ;
78import { __decorate , __metadata } from "tslib" ;
89
910export const isUndefined = ( obj : any ) : obj is undefined =>
@@ -32,6 +33,12 @@ export const isSymbol = (fn: any): fn is symbol => typeof fn === "symbol";
3233export const strVal = ( value : any ) =>
3334 typeof value === "string" ? value : String ( value ) ;
3435
36+ export const isNotEmpty = extendedValidator . isNotEmpty ;
37+
38+ export const isNegative = extendedValidator . isNegative ;
39+
40+ export const isPositive = extendedValidator . isPositive ;
41+
3542/**
3643 * Assertion utility.
3744 */
Original file line number Diff line number Diff line change 11{
22 "name" : " lin-mizar" ,
3- "version" : " 0.0.1-alpha.23 " ,
3+ "version" : " 0.0.1-alpha.24 " ,
44 "description" : " The core library of Lin CMS" ,
55 "main" : " lin/index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments