sugar.js definitions for typescript