Type-proofing my Firestore with 🦎 Salamander

Salamanders and fire have mythical connections
user.set({ /* data */ })
user.update({ /* data */ })

Using the Salamander

After importing the salamander function, you just execute it by passing in the standard admin.firestore() object.

VSCode shows me a swell error now


The code for this is very small. In fact, you can see the entire file on GitHub. Most of the repository is documentation and configurations. Still, it adds just a bit more reliability to what I’m doing.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nick Felker

Social Media Expert -- Rowan University 2017 -- IoT & Assistant @ Google