Skip to content

@vowel.to/client v0.1.2-393


@vowel.to/client / index / DirectAdaptersOptions

Interface: DirectAdaptersOptions

Defined in: lib/vowel/adapters/helpers.ts:40

Options for creating direct adapters (SPAs)

Properties

PropertyTypeDescriptionDefined in
navigate(path) => void | Promise<void>Navigation function for your router Example // Next.js navigate: (path) => router.push(path) // Vue Router navigate: (path) => router.push(path) // React Router navigate: (path) => navigate(path)lib/vowel/adapters/helpers.ts:55
getCurrentPath?() => stringOptional: Function to get current path Defaults to window.location.pathnamelib/vowel/adapters/helpers.ts:61
routes?VowelRoute[]Optional: Array of routeslib/vowel/adapters/helpers.ts:66
enableAutomation?booleanEnable automation (default: true) Set to false to disable page interactionlib/vowel/adapters/helpers.ts:72