import { type dnt } from "https://deno.land/x/upstash_redis@v1.21.0/deps.ts";
const { ShimOptions } = dnt;
Provide true
to use the shim in both the distributed code and test code,
"dev"
to only use it in the test code, or false
to not use the shim
at all.
Properties
Shim the global setTimeout
and setInterval
functions with
Deno and browser compatible versions.
Shim DOMException
using the "domexception" package (https://www.npmjs.com/package/domexception)
Shim fetch
, File
, FormData
, Headers
, Request
, and Response
by
using the "undici" package (https://www.npmjs.com/package/undici).
Use a sham for the WeakRef
global, which uses globalThis.WeakRef
when
it exists. The sham will throw at runtime when calling deref()
and WeakRef
doesn't globally exist, so this is only intended to help type check code that
won't actually use it.
Shim WebSocket
with the ws
package (https://www.npmjs.com/package/ws).