SHARE
TWEET

Untitled

a guest Jun 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top