move the typedefs out of objectliterals