Toddler bed

What is the youngest age a child can go into a toddler bed that is still in the parents room?

(I only have a one bedroom apartment) so baby is still in my room.