You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
I see it as a static getter isRegistered on GlobalRegistrator class but will be glad to see any solution to my problem.
Describe alternatives you've considered
I could check if window is already defined but that could be a different window, other that from happy-dom
Also AFAIK typeof window === undefined check could be eliminated as a dead code with some bundlers.
The other alternative is to check .registered with @ts-ignore, but that is a code smell.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I want to know if globals have already been applied
Describe the solution you'd like
I see it as a static getter
isRegistered
on GlobalRegistrator class but will be glad to see any solution to my problem.Describe alternatives you've considered
I could check if window is already defined but that could be a different window, other that from happy-dom
Also AFAIK
typeof window === undefined
check could be eliminated as a dead code with some bundlers.The other alternative is to check
.registered
with@ts-ignore
, but that is a code smell.The text was updated successfully, but these errors were encountered: