I defined a file api.ts:
export default {
login: "/account/login post"
}
introduce import api from". / api"
then loop through the api
for(const key in api) {
console.log(api[key]);
}
the error message: Element implicitly has an "any" type because type" {login: string;} "has no index signature. is reported at this time.
ts version: 3.0.0
which god has encountered this kind of problem, please let me know, thank you!