method SourceFile.prototype.getRelativePathAsModuleSpecifierToimport { SourceFile } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts"; getRelativePathAsModuleSpecifierTo(filePath: string): stringGets the relative path to the specified file path as a module specifier. getRelativePathAsModuleSpecifierTo(sourceFile: SourceFile): stringGets the relative path to the specified source file as a module specifier. getRelativePathAsModuleSpecifierTo(directory: Directory): stringGets the relative path to the specified directory as a module specifier. Gets the relative path to the specified file path as a module specifier. ParametersfilePath: string File path. ReturnsstringGets the relative path to the specified source file as a module specifier. ParameterssourceFile: SourceFile Source file. ReturnsstringGets the relative path to the specified directory as a module specifier. Parametersdirectory: Directory Directory. Returnsstring