/* eslint-disable @typescript-eslint/no-explicit-any */ import { Last } from "./array.types"; export type FunctionType

= (...arg: P) => R; export type LastParameter any> = Last>; export type OmitFirstArg = F extends (arg: any, ...args: infer P) => infer R ? (...args: P) => R : F;