UNPKG

@rashedmakkouk/dev-utils

Version:
16 lines (15 loc) 583 B
/** Typings */ import { RandomOptions, RandomResult, RandomTypes } from '../types'; /** * Generates a random string or number with customizable options. * * - filename: File names stored in databases. * - number: Number between defined min and max. * - temp: File names stored in temporary or cache locations. * - title: Content or post random title. * - uuid: v4 * * @returns Generated string or number. */ declare function random<RandomTypeT extends RandomTypes>(type: RandomTypeT, options?: RandomOptions<RandomTypeT>): RandomResult<RandomTypeT>; export default random;