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
function reverseMapKeys< | |
InputSchema extends object = any, | |
InputKeys extends keyof InputSchema = keyof InputSchema, | |
Mapping extends Record<InputKeys, any> = Record<InputKeys, any>, | |
Result extends { | |
[key in Mapping[InputKeys]]: InputSchema[Mapping[key]]; | |
} = { | |
[key in Mapping[InputKeys]]: InputSchema[Mapping[key]]; | |
} | |
>( |