Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
12 lines
550 B
Plaintext
12 lines
550 B
Plaintext
import type { FieldHook } from '../../config/types.js';
|
|
import type { SlugFieldArgs } from './index.js';
|
|
type HookArgs = {
|
|
slugFieldName: NonNullable<SlugFieldArgs['name']>;
|
|
} & Pick<SlugFieldArgs, 'slugify'> & Required<Pick<SlugFieldArgs, 'useAsSlug'>>;
|
|
/**
|
|
* This is a `BeforeChange` field hook used to auto-generate the `slug` field.
|
|
* See `slugField` for more details.
|
|
*/
|
|
export declare const generateSlug: ({ slugFieldName, slugify: customSlugify, useAsSlug }: HookArgs) => FieldHook;
|
|
export {};
|
|
//# sourceMappingURL=generateSlug.d.ts.map |