locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
7 lines (6 loc) • 626 B
TypeScript
import type { PhpAssoc, PhpRuntimeValue } from '../_helpers/_phpTypes.ts';
type SliceValue = PhpRuntimeValue;
export declare function array_slice<TValue extends SliceValue>(arr: TValue[], offst: number, lgth?: number, preserveKeys?: false | undefined): TValue[];
export declare function array_slice<TValue extends SliceValue>(arr: TValue[], offst: number, lgth: number | undefined, preserveKeys: true): TValue[] | PhpAssoc<TValue | undefined>;
export declare function array_slice<TValue extends SliceValue>(arr: PhpAssoc<TValue>, offst: number, lgth?: number, preserveKeys?: boolean): PhpAssoc<TValue | undefined>;
export {};