RoadmapShopEvents
Skip to main content

Home > @rushstack/node-core-library > IParsedPackageNameOrError

IParsedPackageNameOrError interface

Result object returned by PackageName.tryParse()

Signature:

export interface IParsedPackageNameOrError extends IParsedPackageName 

Extends: IParsedPackageName

Properties

PropertyModifiersTypeDescription
errorstringIf the input string could not be parsed, then this string will contain a nonempty error message. Otherwise it will be an empty string.
scopestring

The parsed NPM scope, or an empty string if there was no scope. The scope value will always include the at-sign.

(Inherited from IParsedPackageName)

unscopedNamestring

The parsed NPM package name without the scope.

(Inherited from IParsedPackageName)