Skip to content

Commit b2cc72b

Browse files
committed
Update fetch.ts
1 parent 7f78d1c commit b2cc72b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/api/fetch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ export const fetchApiServerJson = async <T>(
7878
jq?: string,
7979
httpMethod: string = 'GET',
8080
body?: BodyInit,
81-
): Promise<T | string> => {
81+
): Promise<T> => {
8282
const res = await fetchApiServer(path, config, jq, httpMethod, body);
8383
const data = await parseJsonOrText(res);
84-
return data as T | string;
84+
return data as T;
8585
};
8686

8787
// request is of [path, config, jq]

0 commit comments

Comments
 (0)