MCPcopy Create free account
hub / github.com/angular/angular / relative

Function relative

packages/compiler-cli/src/ngtsc/file_system/src/helpers.ts:96–98  ·  view source on GitHub ↗
(from: T, to: T)

Source from the content-addressed store, hash-verified

94 * Static access to `relative`.
95 */
96export function relative<T extends PathString>(from: T, to: T): PathSegment | AbsoluteFsPath {
97 return fs.relative(from, to);
98}
99
100/**
101 * Static access to `basename`.

Callers 14

emitMethod · 0.90
analyzeMethod · 0.90
logical.tsFile · 0.90
isWithinBasePathFunction · 0.90
relativePathBetweenFunction · 0.90
getProjectRelativePathFunction · 0.90
relativeMethod · 0.85
canMigrateFileFunction · 0.85
runInjectMigrationFunction · 0.85
runControlFlowMigrationFunction · 0.85

Calls 1

relativeMethod · 0.65

Tested by

no test coverage detected