mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: fetchBlitz return type
This commit is contained in:
1 parent
c5f433fdf4
commit
9b855fca47
1 file changed
+2
-2
@@ -41,11 +41,11 @@ async function manageQueue() {
|
||||
}
|
||||
|
||||
export default function fetchBlitz<Data extends object>(url: string) {
|
||||
return new Promise<BlitzResponse<Data>>((resolve) => {
|
||||
return new Promise<Data>((resolve) => {
|
||||
queue.push({
|
||||
url,
|
||||
resolve(data) {
|
||||
resolve(data as BlitzResponse<Data>);
|
||||
resolve(data as Data);
|
||||
},
|
||||
});
|
||||
manageQueue();
|
||||
|
||||
Reference in new issue
Block a user