mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
9 lines
158 B
TypeScript
9 lines
158 B
TypeScript
// @module: esnext,system,es2020
|
|
// @strict: true
|
|
|
|
declare global { interface ImportMeta {foo?: () => void} };
|
|
|
|
if (import.meta.foo) {
|
|
import.meta.foo();
|
|
}
|