Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method ImportDeclaration.prototype.getModuleSpecifierSourceFile
import { ImportDeclaration } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Gets the source file referenced in the module specifier or returns undefined if it can't find it.

Returns

SourceFile | undefined