backend: Provide type for signedGet

This commit is contained in:
Michcio 2022-09-04 12:08:06 +02:00 committed by Johann150
parent 6db9b76f46
commit d725f93d40
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -34,7 +34,7 @@ export default async (user: { id: User['id'] }, url: string, object: any) => {
* @param user http-signature user
* @param url URL to fetch
*/
export async function signedGet(url: string, user: { id: User['id'] }) {
export async function signedGet(url: string, user: { id: User['id'] }): Promise<any> {
const keypair = await getUserKeypair(user.id);
const req = createSignedGet({