fix: Types
This commit is contained in:
@@ -53,7 +53,7 @@ async function send({
|
|||||||
|
|
||||||
export function get(
|
export function get(
|
||||||
path: string,
|
path: string,
|
||||||
headers: Record<string, unknown>
|
headers?: Record<string, unknown>
|
||||||
): Promise<Record<string, unknown>> {
|
): Promise<Record<string, unknown>> {
|
||||||
return send({ method: 'GET', path, headers });
|
return send({ method: 'GET', path, headers });
|
||||||
}
|
}
|
||||||
@@ -61,7 +61,7 @@ export function get(
|
|||||||
export function del(
|
export function del(
|
||||||
path: string,
|
path: string,
|
||||||
data: Record<string, unknown>,
|
data: Record<string, unknown>,
|
||||||
headers: Record<string, unknown>
|
headers?: Record<string, unknown>
|
||||||
): Promise<Record<string, unknown>> {
|
): Promise<Record<string, unknown>> {
|
||||||
return send({ method: 'DELETE', path, data, headers });
|
return send({ method: 'DELETE', path, data, headers });
|
||||||
}
|
}
|
||||||
@@ -77,7 +77,7 @@ export function post(
|
|||||||
export function put(
|
export function put(
|
||||||
path: string,
|
path: string,
|
||||||
data: Record<string, unknown>,
|
data: Record<string, unknown>,
|
||||||
headers: Record<string, unknown>
|
headers?: Record<string, unknown>
|
||||||
): Promise<Record<string, unknown>> {
|
): Promise<Record<string, unknown>> {
|
||||||
return send({ method: 'PUT', path, data, headers });
|
return send({ method: 'PUT', path, data, headers });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user