Attempting to perform a basic fetch operation in Vue using TypeScript:
Encountered compilation issues:
ERROR in src/components/AuthKeysForm.vue:149:33
TS2345: Argument of type 'Ref<string>' is not assignable to parameter of type 'RequestInfo'.
Type 'Ref<string>' is missing the following properties from type 'Request': cache, credentials, destination, headers, and 17 more.
147 | audience,
148 | async onSubmit() {
> 149 | const res = await fetch(keysUrl);
| ^^^^^^^
150 | const keys = (await res.json())?.keys;
151 |
152 | console.log('submit', type, keysUrl, issuer, audience, keys);
Uncertain about how to correctly specify the types in this scenario.