operationResponse.ts 554 B

12345678910111213141516171819
  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License. See License.txt in the project root for license information.
  3. import { Mapper } from "./serializer";
  4. /**
  5. * An OperationResponse that can be returned from an operation request for a single status code.
  6. */
  7. export interface OperationResponse {
  8. /**
  9. * The mapper that will be used to deserialize the response headers.
  10. */
  11. headersMapper?: Mapper;
  12. /**
  13. * The mapper that will be used to deserialize the response body.
  14. */
  15. bodyMapper?: Mapper;
  16. }