Type Alias PrefixProps<T, PRE>

PrefixProps: { [K in keyof T & string as `${PRE}${K}`]: T[K] }

add a prefix PRE to all property names of object T

Type Parameters

  • T
  • PRE extends string