removed the unnecessary .d.ts references based on server side or client side.
same as previous check-in
some typescript errors fixed.