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 }); }