Type Alias PickStartsWith<T, Prefix>

PickStartsWith: {
    [K in keyof T as K extends `${Prefix}${string}` ? K : never]: T[K]
}

Type Parameters

  • T
  • Prefix extends string