Add type definition to cocos2d-js.