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