Related to #19
Added type definitions for components, functions, data Added guards for network responses fixes #8