mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
554 B
Plaintext
20 lines
554 B
Plaintext
index.ts(1,8): error TS2882: Cannot find module or type declarations for side-effect import of './extention'.
|
|
|
|
|
|
==== extension.d.ts (0 errors) ====
|
|
declare global {
|
|
namespace globalThis {
|
|
var test: string;
|
|
}
|
|
}
|
|
|
|
export {}
|
|
|
|
==== index.ts (1 errors) ====
|
|
import "./extention";
|
|
~~~~~~~~~~~~~
|
|
!!! error TS2882: Cannot find module or type declarations for side-effect import of './extention'.
|
|
|
|
globalThis.tests = "a-b";
|
|
console.log(globalThis.test.split("-"));
|
|
|