Fix UMD globals for browser-like environments in types.