Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_class_validator/src/utils/index.ts>getGlobal

Decorator-based property validation for classes.
Latest
function getGlobal
import { getGlobal } from "https://deno.land/x/deno_class_validator@v1.0.0/src/utils/index.ts";

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.