ImportMeta class
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.
Deno provides extra properties on import.meta
. These are included here
to ensure that these are still available when using the Deno namespace in
conjunction with other type libs, like dom
.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- ImportMeta.new({String? url, bool? main, String resolve(String)?})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- main ↔ bool
-
Available on ImportMeta, provided by the ImportMeta$Typings extension
A flag that indicates if the current module is the main module that was called when starting the program under Deno.getter/setter pair - resolve ↔ String Function(String)
-
Available on ImportMeta, provided by the ImportMeta$Typings extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url ↔ String
-
Available on ImportMeta, provided by the ImportMeta$Typings extension
A string representation of the fully qualified module URL. When the module is loaded locally, the value will be a file URL (e.g.file:///path/module.ts
).getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited