[X] I have referenced available documentation and cannot resolve the issue
[X] I'm certain this is an issue with oxymysql, and not with my resource
Describe the bug
When using typescript the editor shows that the Result type doesn't have length and can't by accessed by index.
The code works fine, it's just a type error.
Screenshots
If applicable, add screenshots to help explain your problem.
Code
const result = await oxmysql.query('SELECT CONCAT(JSON_EXTRACT(charinfo, "$.firstname"), " ", JSON_EXTRACT(charinfo, "$.lastname")) AS name from players where id = ?', [charID]);
if (result == null || result.length == 0) {
return null;
}else {
let player = result[0];
return player;
}
Issue checklist
Describe the bug
When using typescript the editor shows that the
Result
type doesn't have length and can't by accessed by index. The code works fine, it's just a type error.Screenshots If applicable, add screenshots to help explain your problem.
Code
Expected behavior Should not show any errors
Additional context
Server details
Database details