Closed Adam-Salem-Codes closed 1 month ago
Hey @Adam-Salem-Codes!
Not sure which method is returning MatchData
instead of Match
, I will investigate that later this week. For now, you can use the Match
constructor like below. The library should be doing this automatically.
const match = new Match(matchData);
Fixed in v6.0.0
- this is a significant breaking update.
Hello, I'm using Next.js (typescript), and I was trying to write an API for my frontend to access the team data and match outcomes. For some reason, using the example code (record.ts) doesn't work. I've isolated the problem to the function
match.teamOutcome(team.number)
I've also tested this with an express.js server and it gave me the same results.