mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Fix 'no unncessary type assertion' (#871)
This commit is contained in:
@@ -104,7 +104,7 @@ function globalExport(name: string, obj: any) {
|
||||
// visible everywhere. Should be used very sparingly!
|
||||
|
||||
// `window` in the browser, `global` in node
|
||||
const _global = (window || global) as any;
|
||||
const _global = (window || global);
|
||||
_global[name] = obj;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user