Type Alias OmitStartsWith<T, Prefix>

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

Type Parameters

  • T
  • Prefix extends string