Open kevinresol opened 3 years ago
$global.GlobalType
should not be used in type definitions. Not sure how to fix the issue there
Perhaps we should just prefix the type with $ when it is using a globally reserved name
or we can use a prefixed name internally, this seems to work:
// main.ts
import {Promise as Promise__1} from './mypromise'
var customPromise = new Promise__1();
var globalPromise = new Promise<number>(null);
Promise__1.foo(globalPromise);
// mypromise.ts
class $Promise {
static foo(input:Promise<number>) {}
}
export const Promise = $Promise
ref: