@donkeylabs/server 2.0.10 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/server.ts +2 -2
package/package.json
CHANGED
package/src/server.ts
CHANGED
|
@@ -1145,9 +1145,9 @@ ${factoryFunction}
|
|
|
1145
1145
|
);
|
|
1146
1146
|
// Extract result from Response
|
|
1147
1147
|
if (response instanceof Response) {
|
|
1148
|
-
return response.json()
|
|
1148
|
+
return response.json() as Promise<TOutput>;
|
|
1149
1149
|
}
|
|
1150
|
-
return response;
|
|
1150
|
+
return response as TOutput;
|
|
1151
1151
|
} else {
|
|
1152
1152
|
return await finalHandler();
|
|
1153
1153
|
}
|