Update RequestEvent to use parameterized type T (#822)
Updated `RequestEvent` to use parameterized type `T`. In reference to: https://github.com/elastic/elasticsearch-js/pull/819#issuecomment-484594841
This commit is contained in:
committed by
Tomas Della Vedova
parent
2f665054f1
commit
c35eb421cb
2
lib/Transport.d.ts
vendored
2
lib/Transport.d.ts
vendored
@ -50,7 +50,7 @@ interface TransportOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface RequestEvent<T = any> {
|
export interface RequestEvent<T = any> {
|
||||||
body: any;
|
body: T;
|
||||||
statusCode: number | null;
|
statusCode: number | null;
|
||||||
headers: anyObject | null;
|
headers: anyObject | null;
|
||||||
warnings: string[] | null;
|
warnings: string[] | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user