Validates package type.
Package type to validate
True if valid
if (!isValidPackageType('standard')) { throw new Error('Invalid package type');} Copy
if (!isValidPackageType('standard')) { throw new Error('Invalid package type');}
Validates package type.