remove most uses of `as any` in typescript
- replaced many uses of 
as anywith another more specific castas T - filled in missing typed for items that needed to be typed
- new runtime code was added where necessary to satisfy the new types with comments
 
 - added missing theme variable "sidebar-active" to the Theme variables
 - forms using 
react-hook-formare now typechecked - changed some instances of 
targetintocurrentTargetwhile removingas anyassertions 
Edited  by insert