GitHub

DaffSeoUpdateEventPair

Specifies a function to run in response to a particular action. Used to add feature-specific SEO behavior.

import { DaffSeoUpdateEventPair } from '@daffodil/seo/router'
interface DaffSeoUpdateEventPair<T extends Event = Event, V = unknown> {
  event: Constructable<T>
  getData: (event: T, activatedRoute: ActivatedRoute) => V
}

Properties

Name Type Description
event Constructable<T>

The type of action to respond to.

getData (event: T, activatedRoute: ActivatedRoute) => V

A function that gets SEO info from the particular action.