You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to separate code into multiple functions using typescript it is sometimes not possible to define the type of arguments because Galeforce does not export all interfaces. An example:
constmatch=getMatch(matchId)// MatchDTO from galeforcefor(constpofmatch.data.info.participants){construneData=getRuneData(p)...}
...
// Here I can't define the type because the Participant type is not exported.constgetRuneData=(participant: ?): string[]=>{
...
}
Simply exporting all interfaces would solve this issue.
If you don't want to do this (let's be honest it's a really boring task) but think it is a good idea I can create a PR with the changes.
The text was updated successfully, but these errors were encountered:
When trying to separate code into multiple functions using typescript it is sometimes not possible to define the type of arguments because Galeforce does not export all interfaces. An example:
Simply exporting all interfaces would solve this issue.
If you don't want to do this (let's be honest it's a really boring task) but think it is a good idea I can create a PR with the changes.
The text was updated successfully, but these errors were encountered: