Skip to content

Commit 9c716a3

Browse files
onehorsetowndelvedor
authored andcommitted
Update RequestEvent to use parameterized type T (#822)
Updated `RequestEvent` to use parameterized type `T`. In reference to: #819 (comment)
1 parent 9924ada commit 9c716a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Transport.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface TransportOptions {
5050
}
5151

5252
export interface RequestEvent<T = any> {
53-
body: any;
53+
body: T;
5454
statusCode: number | null;
5555
headers: anyObject | null;
5656
warnings: string[] | null;

0 commit comments

Comments
 (0)