Tag: zod

  • Firestore generic data converter with typescript

    Firestore is a non relational database that allows saving scheme-less documents. Nevertheless most of the time we need documents to be shaped in a particular way to avoid mess and gain control over the code. In order to take advantage of type safety and typescript autocomplete on we need to use converter when fetching data…