Definition for typescript services