MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / toImportPath

Function toImportPath

packages/alphatab/scripts/TypeSchema.ts:401–403  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

399const root = path.resolve(__dirname, '..');
400
401export function toImportPath(fileName: string) {
402 return `@${removeExtension(path.relative(root, fileName)).replaceAll('\\', '/')}`.replace('@src/', '@coderline/alphatab/');
403}
404
405function findModule(type: ts.Type, options: ts.CompilerOptions) {
406 if (type.symbol && type.symbol.declarations) {

Callers 2

findModuleFunction · 0.70

Calls 2

replaceMethod · 0.80
removeExtensionFunction · 0.70

Tested by

no test coverage detected