import { DaffSeoUpdateEventPair } from '@daffodil/seo/router'
Specifies a function to run in response to a particular action. Used to add feature-specific SEO behavior.
interface DaffSeoUpdateEventPair<T extends Event = Event, V = unknown> {
event: Constructable<T, unknown[]>
getData: (event: T, activatedRoute: ActivatedRoute) => V
}
event Constructable<T, unknown[]> |
---|
The type of action to respond to. |
getData (event: T, activatedRoute: ActivatedRoute) => V |
---|
A function that gets SEO info from the particular action. |