Updating TypeScript definition