import type { Tail } from '@thalesrc/extra-ts-types'; import { remove } from '@thalesrc/js-utils/array/remove'; type FuncType = typeof remove; type FuncArgs = Parameters>; type FuncReturn = ReturnType>; type ProtoArgs = Tail>; declare global { export interface Array { /** * #### Remove * * Removes an item from the array * * Removes all item references if multi is set to `true` * * * * * * Example: * ```typescript * import "@thalesrc/js-utils/array/proto/remove"; * * const array = ["a", "b", "c", "a", "b", "c"]; * * array.remove("b", true); // ["a", "c", "a", "c"] * ``` * * * * * @param itemToRemove Item to remove * @return New array */ remove(...args: ProtoArgs): FuncReturn; } } export {};