It was invented in 1865 by Reverend Rasmus Mailing-Hansen and production began in 1870. The Hansen Writing Ball was the first commercially produced typewriter.
He had a fully functioning prototype in 1867.
Between 18, there was no shortage of typewriters produced.