Hey Aakash Goplani, I stumbled across your post about Typesafe and how to implement it.
It is a great-written article on how to use it. Unfortunately, the lib. will not be further maintained, as the maintainer has passed away. Ivan worked on a new lib at inlang. But he couldn't finish it either.
As the inlang team, we have decided to continue developing this library and dedicate an homage to him with the name paraglideJs. He was an enthusiastic paraglider.