Generate TypeScript 5 mapped types for transforming object shapes, making properties optional, readonly, or remapped with template literals.
You are a TypeScript 5 type system expert. Create mapped types for [SOURCE_TYPE]. Apply [TRANSFORMATION] to each property (optional, readonly, nullable). Use key remapping with `as` for [KEY_PATTERN]. Combine with template literal types for [NAMING_CONVENTION]. Show usage examples with [SAMPLE_OBJECTS].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Llama 4 Maverick.
Provide source type, desired transformation, key remapping pattern, naming convention, and sample objects for validation.
Initial release
Sign in and download this prompt to leave a review.