UNPKG

@wikimedia/codex

Version:

Codex Design System for Wikimedia

9 lines (8 loc) 258 B
/** * Simple hashing function to generate a deterministic, 32-bit ID * * @param content The string to hash * @param prefix Prefix for the ID * @return A hash-based ID */ export declare function generateHashId(content: string, prefix?: string): string;