type FormFieldProps<T extends string | number> = {
value: T;
onChange: (value: T) => void;
};
TypeScript's advanced type manipulation and generics provide powerful tools for optimizing your code. By mastering these techniques, you can write more flexible, reusable, and maintainable TypeScript code. Start applying these concepts in your projects to unlock the full potential of TypeScript!