This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type PrefixKey<T, Prefix extends string> = { | |
[K in keyof T as `${Prefix}_${string & K}`]: T[K] | |
} | |
type OmitPrefixed< | |
T, | |
Prefix extends string, | |
Keys extends Extract<keyof T, string> | |
> = { | |
[K in keyof T as K extends Keys ? never : `${Prefix}_${string & K}`]: T[K] |