locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
15 lines (14 loc) • 518 B
TypeScript
import type { PhpAssoc, PhpRuntimeValue } from '../_helpers/_phpTypes.ts';
type SortValue = PhpRuntimeValue;
type SortableObject = PhpAssoc<SortValue>;
type SortArg = SortValue[] | SortableObject | SortFlag;
declare const flags: Readonly<{
SORT_REGULAR: number;
SORT_NUMERIC: number;
SORT_STRING: number;
SORT_ASC: number;
SORT_DESC: number;
}>;
type SortFlag = keyof typeof flags;
export declare function array_multisort(arr: SortValue[] | SortableObject, ...rest: SortArg[]): boolean;
export {};