You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a real problem or use-case?
As a TypeScript developer, I often find myself working with objects and needing to transform the type of their values in a type-safe manner. At times, I want to apply transformations only to specific properties (either by selecting them explicitly or excluding them). Currently, TypeScript does not provide built-in utility types to specifically handle these use-cases.
Describe a solution including usage in code example
// Transformer function exampleconsttoStringTransformer=<T>(arg: T): string=>`${arg}`;typeUser={name: string;age: number;isActive: boolean;};typeStringifiedUser=MapValues<User,typeoftoStringTransformer>;typePartiallyStringifiedUser=MapValuesPick<User,'age'|'isActive',typeoftoStringTransformer>;typeMostlyStringifiedUser=MapValuesOmit<User,'name',typeoftoStringTransformer>;
Who does this impact? Who is this for?
This feature would be particularly beneficial for TypeScript developers who work with complex data structures and need a straightforward way to manipulate types across their applications. By reducing the boilerplate associated with types transformations, it could enhance productivity, especially in projects where data manipulation and transformation are frequent operations. This is for developers who prefer maintaining strict type safety while applying transformations or modifications to their types.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a real problem or use-case?
As a TypeScript developer, I often find myself working with objects and needing to transform the type of their values in a type-safe manner. At times, I want to apply transformations only to specific properties (either by selecting them explicitly or excluding them). Currently, TypeScript does not provide built-in utility types to specifically handle these use-cases.
Describe a solution including usage in code example
Solution:
Example:
Who does this impact? Who is this for?
This feature would be particularly beneficial for TypeScript developers who work with complex data structures and need a straightforward way to manipulate types across their applications. By reducing the boilerplate associated with types transformations, it could enhance productivity, especially in projects where data manipulation and transformation are frequent operations. This is for developers who prefer maintaining strict type safety while applying transformations or modifications to their types.
The text was updated successfully, but these errors were encountered: