Skip to content

Commit

Permalink
Merge pull request #142 from swsnr/import-meta-url
Browse files Browse the repository at this point in the history
Add type for import.meta.url
  • Loading branch information
JumpLink authored Jan 1, 2024
2 parents 87810cd + 2040bde commit c80fb6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/generator-typescript/templates/gjs/dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

declare global {

interface ImportMeta {
/**
* The absolute file: or resource: URL of the module.
*
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/ESModules.md#importmetaurl
*/
readonly url: string;
}

// Timers
// See https://gitlab.gnome.org/GNOME/gjs/-/blob/master/modules/esm/_timers.js

Expand Down

0 comments on commit c80fb6c

Please sign in to comment.