UNPKG

locutus

Version:

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

7 lines (6 loc) 463 B
import type { PhpRuntimeList, PhpRuntimeValue } from '../_helpers/_phpTypes.ts'; type PadValue = PhpRuntimeValue; type NonArrayPadInput = Exclude<PadValue, PhpRuntimeList>; export declare function array_pad<TInput extends PadValue, TPad extends PadValue>(input: TInput[], padSize: number, padValue: TPad): Array<TInput | TPad>; export declare function array_pad<TPad extends PadValue>(input: NonArrayPadInput, padSize: number, padValue: TPad): TPad[]; export {};