UNPKG

class-validator

Version:

Decorator-based property validation for classes.

8 lines (7 loc) 279 B
/** * This function returns the global object across Node and browsers. * * Note: `globalThis` is the standardized approach however it has been added to * Node.js in version 12. We need to include this snippet until Node 12 EOL. */ export declare function getGlobal(): any;