url

Creates a validation functions that validates a URL.

const validate = url(error);

Parameter

  • error string

Return

  • validate QRL<(value: MaybeValue<string>) => string>