12 lines
493 B
TypeScript
12 lines
493 B
TypeScript
import type { Config } from 'payload';
|
|
import type { SeoOption } from './types.js';
|
|
/**
|
|
* Injects the auto-fill meta hook into every SEO-enabled collection.
|
|
*
|
|
* Runs after @payloadcms/plugin-seo has added the meta group, appending a
|
|
* beforeChange hook that fills empty meta from document content. Existing
|
|
* hooks are preserved (plugin hook runs last, so editor input and other hooks
|
|
* win first).
|
|
*/
|
|
export declare function injectAutoFillMeta(config: Config, seo: SeoOption): Config;
|