Home > @microsoft/rush-lib > PackageJsonDependency > (constructor)

PackageJsonDependency.(constructor)

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.

Constructs a new instance of the PackageJsonDependency class

Signature:

constructor(name: string, version: string, type: DependencyType, onChange: () => void);

Parameters

Parameter Type Description
name string  
version string  
type DependencyType  
onChange () => void