Open tahini opened 3 weeks ago
@tahini Could you provide an example?
InterviewPathFunction
c'est la même chose que ParsingFunction<T>
. Beaucoup des types du genre { fr: bla, en: bla }
sont en fait des I18nData
(qui inclut des parsingFunction), etc. Avant, ces types étaient génériques et donc difficile d'utiliser dans le générateur, mais maintenant, ça peut presque être du find & replace!
Also the SectionConfig
and SectionConfigs
from the generator (in sectionsTypes.ts) should be replaced with SurveySection
and SurveySections
in interview.ts (evolution-frontend), once the main type is updated. In the generator, it types more fields, but the main one uses some ParsingFunction type where necessary.
With #531 the types in the main evolution packages are not generic anymore, so it can be easier for the generator types to use those, as some of the main types are more complete than the generator ones.