type
__internal.UseLibDomIfAvailable
type UseLibDomIfAvailable<GlobalThisKeyName extends PropertyKey, Otherwise> = LibDomIsLoaded extends true ? typeof globalThis extends { [K in GlobalThisKeyName]: infer T } ? T : Otherwise : Otherwise
Uses the lib.dom.d.ts definition of a global if it exists, otherwise falls back to Otherwise.
Some symbols can't be declared in a way that satisfies both @types/bun and lib.dom.d.ts, so when lib.dom.d.ts is loaded, its definition wins.