LinkValidationOptions
Defined in: src/validation.ts:185
Options for validateLinkInput.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
allowAppSchemes? |
boolean |
Allow non-http(s) schemes (app deep links like myapp://). Default true. |
UrlPolicyOptions.allowAppSchemes |
src/validation.ts:54 |
mode |
"update" | "create" |
create requires url; update validates only what is present. |
- | src/validation.ts:187 |
reservedSlugs? |
readonly string[] |
- | - | src/validation.ts:188 |
urlPolicy? |
(url) => string | null | undefined |
Extra check; return a message to reject. | UrlPolicyOptions.urlPolicy |
src/validation.ts:56 |