UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

18 lines (17 loc) 530 B
export declare class RandomGenerator { /** * Generates a RFC 4122 version 4 UUID. * Uses native crypto.randomUUID() if available, otherwise falls back to * a custom implementation using crypto.getRandomValues(). * * @returns A version 4 UUID string */ static uuidv4(): string; /** * Standard-conforming SHA-1 polyfill, based on http://locutus.io/php/sha1/ * * @param str String to be hashed. * @returns SHA-1 hex digest */ static sha1(str: string): string; }