Home > @microsoft/rush-lib > PackageJsonDependency

PackageJsonDependency class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature:

export declare class PackageJsonDependency 

Constructors

Constructor Modifiers Description
(constructor)(name, version, type, onChange)   (BETA) Constructs a new instance of the PackageJsonDependency class

Properties

Property Modifiers Type Description
dependencyType   DependencyType (BETA)
name   string (BETA)
version   string (BETA)

Methods

Method Modifiers Description
setVersion(newVersion)   (BETA)