Namespace: common
main.common
Namespaces
Interfaces
Variables
FEAGlobals
• FEAGlobals: IFEAGlobals
& Partial
<Window
& typeof globalThis
>
Use this Globals object only when you are certain to be running inside FEA. This object has guaranteed fin and finsembleWindow members.
FreestandingGlobals
• FreestandingGlobals: IFreestandingGlobals
& Partial
<Window
& typeof globalThis
>
Use this Globals object only when you are certain to be running as a Freestanding app. This object has guaranteed fin and finsembleWindow members.
Globals
• Globals: IGlobals
& Partial
<Window
& typeof globalThis
>
Use this Globals object in lieu of window
(browser) or global
(node). This provides typesafety!
Fields from window
are provided via typescript Partial<>
. This means that code using Globals must
dynamically check for the existence of the window (because it's possible we could be running outside of a browser, such as in node or a unit test).
If you are certain to be running in FEA then use FEAGlobals.