DaffSeoUpdateActionPair
Specifies a function to run in response to a particular action. Used to add feature-specific SEO behavior.
import { DaffSeoUpdateActionPair } from '@daffodil/seo/state'
interface DaffSeoUpdateActionPair<T extends Action = Action, V = unknown> {
action: T['type']
getData: (action: T) => V
}
Properties
Name | Type | Description |
---|---|---|
action | T['type'] | The type of action to respond to. |
getData | (action: T) => V | A function that gets SEO info from the particular action. |