Closed britneygx closed 11 months ago
In the discordx/importer package, the Typescript definition for the resolve function should return Promise<string[]> rather than its current value of string[].
resolve
Promise<string[]>
string[]
import { resolve } from "@discordx/importer"; const pluginPaths = await resolve(`plugins/*`);
Typescript returns the following warning: 'await' has no effect on the type of this expression.ts(80007)
'await' has no effect on the type of this expression.ts(80007)
@discordx/importer
Stable
No response
Thank you for reporting this issue!!!
What happened?
In the discordx/importer package, the Typescript definition for the
resolve
function should returnPromise<string[]>
rather than its current value ofstring[]
.Reproduction
Typescript returns the following warning:
'await' has no effect on the type of this expression.ts(80007)
Package
@discordx/importer
Version
Stable
Relevant log output
No response
Code of Conduct