That sounds like you have your desk too low. You're going to get some major repetitive strain injuries in 10-20 years.

If you have your arms at your sides, elbows should bend 90 degrees. Then just move your arms slightly forward and you'll end up somewhere around 95 degrees. Now you can rest your forearms on the desk. This won't save you from all kinds of RSI, but it might help your wrists, elbows and shoulder joints last a bit longer.

Having the desk low, the chair high, or putting a laptop on your lap is okay. Having the desk or table "high" (i.e. at normal height for writing with a pen or eating a meal) is generally worse but not an insurmountable problem.

In either case, the most important thing is to keep your wrists in as straight and neutral position as possible, with your palms and wrists "floating" rather than resting on anything while actively typing. Having the wrists either flexed downward or extended upward is a really bad idea. Having the wrists turned out to the side isn't great either, but not as bad.

The keyboard should be positioned close enough to your body so that your shoulders can be relaxed with your upper arms hanging loosely. The laptop surface should be roughly parallel to your forearms, so if you have a high desk or table relative to your torso you will need to prop up the far side to tilt it up a bit.

You don’t even need 20 years, I spent the better part of a year in my mid 20s in pain because I was typing with my wrists at an upward angle like GP is describing.