18b8625ef8
* Add test for extend globalThis * Fix compile aborting
14 lines
247 B
TypeScript
14 lines
247 B
TypeScript
// @filename: extension.d.ts
|
|
declare global {
|
|
namespace globalThis {
|
|
var test: string;
|
|
}
|
|
}
|
|
|
|
export {}
|
|
|
|
// @filename: index.ts
|
|
import "./extention";
|
|
|
|
globalThis.tests = "a-b";
|
|
console.log(globalThis.test.split("-"));
|