先阅读这个问题可能会有所帮助:How to copy the structure of one generic type to another generic in TypeScript?OutputValue<number>;} 此函数的签名为: type OutputType<T> = {
[k in keyofOutput extends GenericMap<Input>>(input
我需要在一个typescript对象上执行一些转换,同时能够保留它的完整形状。simpleObject = { two: (a: number) => ({ a }), [P in keyof我需要对对象执行一些转换,以便: [P in keyof K]: V; // again, typing of V is