Type Alias SequenceArgsMapper<A, U, D>

SequenceArgsMapper<A, U, D>: {
    [K in keyof A]: ((...args: A[K]) => [] extends U[K]
        ? D
        : U[K])
}

self explanatory analogue to RecordArgsMapper, except for Arrays

Type Parameters

  • A extends readonly unknown[][]
  • U extends {
        [K in keyof A]?: any
    } = {
        [K in keyof A]: unknown
    }
  • D extends any = unknown