source: trip-planner-front/node_modules/@angular/cdk/drag-drop/drag-utils.d.ts@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[6a3a178]1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/**
9 * Moves an item one index in an array to another.
10 * @param array Array in which to move the item.
11 * @param fromIndex Starting index of the item.
12 * @param toIndex Index to which the item should be moved.
13 */
14export declare function moveItemInArray<T = any>(array: T[], fromIndex: number, toIndex: number): void;
15/**
16 * Moves an item from one array to another.
17 * @param currentArray Array from which to transfer the item.
18 * @param targetArray Array into which to put the item.
19 * @param currentIndex Index of the item in its current array.
20 * @param targetIndex Index at which to insert the item.
21 */
22export declare function transferArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
23/**
24 * Copies an item from one array to another, leaving it in its
25 * original position in current array.
26 * @param currentArray Array from which to copy the item.
27 * @param targetArray Array into which is copy the item.
28 * @param currentIndex Index of the item in its current array.
29 * @param targetIndex Index at which to insert the item.
30 *
31 */
32export declare function copyArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
Note: See TracBrowser for help on using the repository browser.