Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. interface FirstElement {
  2. id: string;
  3. type: GenericElementType;
  4. options: FirstElementOptions;
  5. }
  6.  
  7. interface SecondElement {
  8. id: string;
  9. type: GenericElementType;
  10. options: SecondElementOptions;
  11. }
  12.  
  13. private static convertElementToDTO(element: FirstElement | SecondElement): FirstElementDTO | SecondElementDTO {
  14. return {
  15. id: element.id,
  16. options: element.options
  17. };
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement