Skip to content

helix / validateRegistryId

Function: validateRegistryId()

validateRegistryId(version, registry, registryName, id): string

Defined in: versions/registry.ts:13

Validate a resource-location id against one of the target version's registries. Returns the normalized id, or throws naming the version if the id is unknown.

Parameters

version

VersionProfile

registry

ReadonlySet<string>

registryName

string

id

string

Returns

string

Released under the MIT License · Credits