Type Alias PostfixProps<T, POST>

PostfixProps<T, POST>: {
    [K in keyof T & string as `${K}${POST}`]: T[K]
}

add a postfix (suffix) POST to all property names of object T

Type Parameters

  • T
  • POST extends string