Why ?
If you were taught piano by any teacher worth their fee, then your position is natural, effortless and your wrists are limp without tension.
Exactly the same position as an ideal computer keyboard position.
Piano position is the best keyboard position. Your fingers are doing the work.
If your wrists are not straight while typing a lot, that's really bad. I constantly see people typing with their wrists either significantly flexed or significantly extended; doing that a lot is a fast road to RSI, and even doing it a little is pretty unpleasant and inadvisable.
If you are going to type a whole lot at a stretch (say, as a programmer or writer), you want your arms to be mostly passively supported from the shoulder. Having your arm bent at the elbow doesn't cause much strain, as long as the upper arm is hanging loosely down with your shoulder relaxed – so bring the keyboard relatively close to your torso. Resting your wrists, palms, or forearms on some surface and then typing generally causes more strain than having your wrists and palms "floating" above the keyboard while actively typing. You can rest the fingertips lightly on the key tops if you want. You can rest your palms on a palmrest or arms on an armrest (or table, or lap, or whatever) while you are taking a break from typing. It's generally a good idea to take regular breaks.