TypeScript support
Closed this issue · 1 comments
parksb commented
I think this project will be more awesome if it supports TypeScript. Actually, I wrote a type declaration file already, but I faced a little problem.
- A
new
keyword can't use for function, soGitHubCalendar
function must be called likeGithubCalendar(...)
notnew GitHubCalendar(...)
. - If the function is declared as a class, the constructor can't return value, so
GitHubCalendar(...)
can't return the promise.
What do you think about this issue?
IonicaBizau commented
The new
keyword is not required. Simply calling GitHubCalendar(...)
should work.