pulse-ai-utils
Version:
Utility functions and helpers for AI-powered applications
20 lines (19 loc) • 610 B
TypeScript
export declare function sanitizeId(id: string): string;
/**
* Generate content-specific IDs based on content type
* For places/venues: uses title+location
* For other content: uses page+title (existing pattern)
*/
export declare function generateContentId(content: {
title: string;
location?: string;
source_url?: string;
page?: string;
category?: string;
type?: string;
}): string;
/**
* Legacy function for backward compatibility
* @deprecated Use generateContentId instead for new content
*/
export declare function sanitizeContentId(title: string, location: string): string;