locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
8 lines (7 loc) • 596 B
TypeScript
import type { PhpAssoc, PhpRuntimeValue } from '../_helpers/_phpTypes.ts';
type SpliceValue = PhpRuntimeValue;
type AssocArray<T> = PhpAssoc<T | undefined>;
type ReplacementValue<T> = Array<T | undefined> | AssocArray<T> | T;
export declare function array_splice<T extends SpliceValue>(arr: Array<T | undefined>, offst: number, lgth?: number, replacement?: ReplacementValue<T>): Array<T | undefined>;
export declare function array_splice<T extends SpliceValue>(arr: AssocArray<T>, offst: number, lgth?: number, replacement?: ReplacementValue<T>): Array<T | undefined> | AssocArray<T>;
export {};