import { Last } from "./array.types.js"; 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;