mrdesjardins / 002-youtube Goto Github PK
View Code? Open in Web Editor NEWThe generation of TypeScript from protocol buffer schema is powerful but requires to map the data from your persistence storage format to the protocol buffer format. What is the right way to start? The original code had two methods with the same logic, one for a single entity, the "house", and one for a list of the entities. Instead of repeating the logic, the best practice is to extract the mapping and create some utility functions.