Share via


AliasPathResolver class

A class that resolves paths by replacing an alias with a specified prefix and optional postfix. This is useful for transforming paths that use shorthand aliases into fully qualified paths.

Constructors

AliasPathResolver(string, string, string)

Initializes a new instance of the AliasPathResolver class.

Methods

transformPath(string)

Transforms the path.

Constructor Details

AliasPathResolver(string, string, string)

Initializes a new instance of the AliasPathResolver class.

new AliasPathResolver(alias: string, prefix: string, postfix?: string)

Parameters

alias

string

Alias name.

prefix

string

Prefix name.

postfix

string

Postfix name.

Method Details

transformPath(string)

Transforms the path.

function transformPath(path: string): string

Parameters

path

string

Path to inspect.

Returns

string

The transformed path.