From b5a9a2cea89cbc91510fb8b400e3c0bbfca99570 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 12 Apr 2022 16:49:52 +0200 Subject: [PATCH] fix: Types --- src/lib/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 2e9271a6c..6d226ef15 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -53,7 +53,7 @@ async function send({ export function get( path: string, - headers: Record + headers?: Record ): Promise> { return send({ method: 'GET', path, headers }); } @@ -61,7 +61,7 @@ export function get( export function del( path: string, data: Record, - headers: Record + headers?: Record ): Promise> { return send({ method: 'DELETE', path, data, headers }); } @@ -77,7 +77,7 @@ export function post( export function put( path: string, data: Record, - headers: Record + headers?: Record ): Promise> { return send({ method: 'PUT', path, data, headers }); }