locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
8 lines (7 loc) • 613 B
TypeScript
import type { PhpArrayLike, PhpRuntimeValue } from '../_helpers/_phpTypes.ts';
type RandomValue = PhpRuntimeValue;
export declare function array_rand<TValue extends RandomValue>(array: PhpArrayLike<TValue>): string | null;
export declare function array_rand<TValue extends RandomValue>(array: PhpArrayLike<TValue>, num: null | undefined): string | null;
export declare function array_rand<TValue extends RandomValue>(array: PhpArrayLike<TValue>, num: 1): string | null;
export declare function array_rand<TValue extends RandomValue>(array: PhpArrayLike<TValue>, num: number): string | string[] | null;
export {};