Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface FirstElement {
- id: string;
- type: GenericElementType;
- options: FirstElementOptions;
- }
- interface SecondElement {
- id: string;
- type: GenericElementType;
- options: SecondElementOptions;
- }
- private static convertElementToDTO(element: FirstElement | SecondElement): FirstElementDTO | SecondElementDTO {
- return {
- id: element.id,
- options: element.options
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement