server side typescript working