Polyman Documentation - v2.2.2
    Preparing search index...

    Function isValidPackageType

    • Validates package type.

      Parameters

      • packageType: string

        Package type to validate

      Returns boolean

      True if valid

      if (!isValidPackageType('standard')) {
      throw new Error('Invalid package type');
      }