UNPKG

typescript-dotnet-core

Version:

A the core classes and utilities of a JavaScript-Friendly .NET Based TypeScript Library.

37 lines (36 loc) 1.32 kB
/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */ import ArrayLikeWritable from "./ArrayLikeWritable"; /** * * @param source * @param sourceIndex * @param length * @returns {any} */ export declare function copy<T>(source: ArrayLike<T>, sourceIndex?: number, length?: number): T[]; export declare module copy { /** * Copies one array to another. * @param source * @param destination * @param sourceIndex * @param destinationIndex * @param length An optional limit to stop copying. * @returns The destination array. */ function to<T, TDestination extends ArrayLikeWritable<T>>(source: ArrayLike<T>, destination: TDestination, sourceIndex?: number, destinationIndex?: number, length?: number): TDestination; } /** * Copies one array to another. * @param source * @param destination * @param sourceIndex * @param destinationIndex * @param length An optional limit to stop copying. * @returns The destination array. */ export declare function copyTo<T, TDestination extends ArrayLikeWritable<T>>(source: ArrayLike<T>, destination: TDestination, sourceIndex?: number, destinationIndex?: number, length?: number): TDestination; export default copy;