pub struct TypeOnlyDependency {
pub package_name: String,
pub path: PathBuf,
pub line: u32,
}Expand description
A production dependency that is only used via type-only imports. In production builds, type imports are erased, so this dependency is not needed at runtime and could be moved to devDependencies.
Fields§
§package_name: StringProduction dependency that is only used via type-only imports.
path: PathBufPath to the package.json where the dependency is listed.
line: u321-based line number of the dependency entry in package.json.
Trait Implementations§
Source§impl Clone for TypeOnlyDependency
impl Clone for TypeOnlyDependency
Source§impl Debug for TypeOnlyDependency
impl Debug for TypeOnlyDependency
Source§impl<'de> Deserialize<'de> for TypeOnlyDependency
impl<'de> Deserialize<'de> for TypeOnlyDependency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TypeOnlyDependency
impl RefUnwindSafe for TypeOnlyDependency
impl Send for TypeOnlyDependency
impl Sync for TypeOnlyDependency
impl Unpin for TypeOnlyDependency
impl UnsafeUnpin for TypeOnlyDependency
impl UnwindSafe for TypeOnlyDependency
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