Skip to content

@gala-chain/apiAPI


API > IsUserAlias

Function: IsUserAlias()

IsUserAlias(options?): (object, propertyName) => void

Parameters

options?: ValidationOptions

Returns

(object, propertyName): void

Parameters

object: object

propertyName: string

Source

chain-api/src/validators/IsUserAlias.ts:137

Description

Used to register a decorator for class validation. Validates against IsUserAliasConstraint. See also IsUserAliasConstraint, validateUserAlias. As of 2024-10, The following alias types are supported: legacy client| and service| prefixed aliases, eth| and ton| prefixed addresses, and internally reserved identities.

Source

chain-api/src/validators/IsUserAlias.ts:136