File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ export declare class SerializationError extends ElasticsearchClientError {
4040export declare class DeserializationError extends ElasticsearchClientError {
4141 name : string ;
4242 message : string ;
43- data : object ;
44- constructor ( message : string , data : object ) ;
43+ data : string ;
44+ constructor ( message : string , data : string ) ;
4545}
4646
4747export declare class ConfigurationError extends ElasticsearchClientError {
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ test('SerializationError', t => {
4444 t . true ( err instanceof Error )
4545 t . true ( err instanceof errors . ElasticsearchClientError )
4646 t . false ( err . hasOwnProperty ( 'meta' ) )
47+ t . true ( err . hasOwnProperty ( 'data' ) )
4748 t . end ( )
4849} )
4950
@@ -52,6 +53,7 @@ test('DeserializationError', t => {
5253 t . true ( err instanceof Error )
5354 t . true ( err instanceof errors . ElasticsearchClientError )
5455 t . false ( err . hasOwnProperty ( 'meta' ) )
56+ t . true ( err . hasOwnProperty ( 'data' ) )
5557 t . end ( )
5658} )
5759
You can’t perform that action at this time.
0 commit comments