mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 22:07:58 +03:00
fix invalid typing in mock-fetch
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import nodeFetch, { Response } from "node-fetch";
|
||||
import { Response } from "node-fetch";
|
||||
import { NodeFetch } from "../fetch";
|
||||
|
||||
export function MockFetch(data: Partial<Response>) {
|
||||
// We know! this is a mock function.
|
||||
// eslint-disable-next-line require-await
|
||||
return ((async () => data) as unknown) as typeof nodeFetch;
|
||||
return ((async () => data) as unknown) as NodeFetch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user