UNPKG

locutus

Version:

Locutus other languages' standard libraries to JavaScript for fun and educational purposes

8 lines (7 loc) 667 B
import { type PhpAssoc, type PhpRuntimeValue } from '../_helpers/_phpTypes.ts'; type ReverseValue = PhpRuntimeValue; export declare function array_reverse<TValue extends ReverseValue>(array: TValue[], preserveKeys?: false | undefined): TValue[]; export declare function array_reverse<TValue extends ReverseValue>(array: TValue[], preserveKeys: true): PhpAssoc<TValue>; export declare function array_reverse<TValue extends ReverseValue>(array: PhpAssoc<TValue>, preserveKeys?: false | undefined): PhpAssoc<TValue> | TValue[]; export declare function array_reverse<TValue extends ReverseValue>(array: PhpAssoc<TValue>, preserveKeys: true): PhpAssoc<TValue>; export {};