Skip to content

ImportMeta

The type of import.meta.

If you need to declare that a given property exists on import.meta, this type may be augmented via interface merging.

readonly main: boolean

true for the script that was run, false for modules it imports.


readonly url: string

file: URL of the running module.