TestLinksOptions
Defined in: src/testing.ts:67
Options for createTestLinks.
Extends
Section titled “Extends”Omit<LinksCoreOptions,"storage"|"analytics">
Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
allowAppSchemes? |
boolean |
Allow app-scheme destinations (myapp://…). Default true. |
LinksCoreOptions.allowAppSchemes |
src/core.ts:240 |
analytics? |
AnalyticsSink |
Use your own sink instead of the collecting sink. | - | src/testing.ts:71 |
attributionWindow? |
LinksDuration |
How long click refs stay claimable for conversions. Default "90d". |
LinksCoreOptions.attributionWindow |
src/core.ts:244 |
auditLogLimit? |
number |
Max audit entries kept per tenant. Default 1000. | LinksCoreOptions.auditLogLimit |
src/core.ts:248 |
counterFlushMs? |
number |
Click counter flush interval (ms). Default 2000. | LinksCoreOptions.counterFlushMs |
src/core.ts:250 |
defaultDomain? |
string |
A shared domain registered automatically on first use and used when a link names no domain, e.g. "go.acme.com" or "localhost". |
LinksCoreOptions.defaultDomain |
src/core.ts:236 |
deferredTtl? |
LinksDuration |
Deferred deep-link handoff lifetime. Default "2h". |
LinksCoreOptions.deferredTtl |
src/core.ts:246 |
hooks? |
LinksHooksInput |
- | LinksCoreOptions.hooks |
src/core.ts:226 |
now? |
() => number |
Clock (epoch millis). | LinksCoreOptions.now |
src/core.ts:231 |
onHookError? |
HookErrorReporter |
- | LinksCoreOptions.onHookError |
src/core.ts:227 |
readonly? |
boolean |
Block all mutations. | LinksCoreOptions.readonly |
src/core.ts:229 |
redirect? |
Omit<RedirectHandlerOptions, "core" | "ingestor"> |
Redirect handler options (the ingestor is always manual-flush). | - | src/testing.ts:69 |
reservedSlugs? |
readonly string[] |
Slugs the redirect handler never serves. Default DEFAULT_RESERVED_SLUGS. | LinksCoreOptions.reservedSlugs |
src/core.ts:238 |
urlPolicy? |
(url) => string | null | undefined |
Extra destination URL check (e.g. block-list); return a message to reject. | LinksCoreOptions.urlPolicy |
src/core.ts:242 |