pub struct PathAlias {
pub prefix: String,
pub suffix: String,
pub targets: Vec<(String, String)>,
}Expand description
A single path alias entry from tsconfig paths.
For "@app/*": ["src/*"], the split is:
prefix = “@app/” (everything before the *)
suffix = “” (everything after the *, often empty)
targets = [(“src/”, “”)] (prefix / suffix pairs for each target)
Fields§
§prefix: String§suffix: String§targets: Vec<(String, String)>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathAlias
impl RefUnwindSafe for PathAlias
impl Send for PathAlias
impl Sync for PathAlias
impl Unpin for PathAlias
impl UnsafeUnpin for PathAlias
impl UnwindSafe for PathAlias
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more