@bernierllc/content-type-blog-post
Version:
Blog post content type with rich TipTap editor, SEO metadata, database storage, and web publishing
20 lines (19 loc) • 613 B
TypeScript
/**
* Validate slug format
* @param slug - Slug to validate
* @returns True if valid, false otherwise
*/
export declare function isValidSlug(slug: string): boolean;
/**
* Generate slug from title
* @param title - Title to convert to slug
* @returns Slug string
*/
export declare function generateSlugFromTitle(title: string): string;
/**
* Ensure slug is unique by appending counter if needed
* @param slug - Base slug
* @param existingSlugs - Array of existing slugs to check against
* @returns Unique slug
*/
export declare function ensureUniqueSlug(slug: string, existingSlugs: string[]): string;