Skip to content

AIDC Toolkit / GS1 / PrefixValidation

Interface: PrefixValidation

Defined in: src/prefix-validator.ts:8

Prefix validation parameters.

Extends

Properties

minimumLength

minimumLength: number

Defined in: src/prefix-validator.ts:12

Minimum length.

Overrides

CharacterSetValidation.minimumLength


maximumLength

maximumLength: number

Defined in: src/prefix-validator.ts:17

Maximum length.

Overrides

CharacterSetValidation.maximumLength


component()

component: () => string

Defined in: src/prefix-validator.ts:22

Callback to localized prefix type name.

Returns

string

Overrides

CharacterSetValidation.component


exclusion?

optional exclusion: Exclusion

Defined in: node_modules/@aidc-toolkit/utility/dist/character-set.d.ts:20

Exclusion from the string. If defined and the string is within the exclusion range, an error is thrown.

Inherited from

CharacterSetValidation.exclusion


positionOffset?

optional positionOffset: number

Defined in: node_modules/@aidc-toolkit/utility/dist/character-set.d.ts:25

Position offset within a larger string. Strings are sometimes composed of multiple substrings; this parameter ensures that the error notes the proper position in the string.

Inherited from

CharacterSetValidation.positionOffset