UNPKG

@hexadrop/value-object

Version:

Hexagonal architecture utils library

16 lines (13 loc) 625 B
import StringValueObject from './string.value-object.js'; declare class SpanishPhoneNumberValueObject extends StringValueObject { /** * Constructs a new SpanishPhoneNumberValueObject instance. * @param {string} value - The value of the phone number. * @param {string} [property='SpanishPhoneNumberValueObject'] - The property name (optional). * @throws {SpanishPhoneNumberValueError} If the value is not valid. */ constructor(value: string, property?: string); static isValid(value: string): boolean; private static checkForm; } export { SpanishPhoneNumberValueObject as default };