Skip to content

Commit

Permalink
feat(widget): add widget type
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget committed Mar 1, 2019
1 parent 8a7bdd6 commit 0ca4281
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/common/src/lib/widget/shared/widget.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { EventEmitter } from '@angular/core';

import { DynamicComponent } from '../../dynamic-component/shared/dynamic-component';

/**
* This is the interface a widget component needs to implement. A widget
* component is component that can be created dynamically. It needs
Expand All @@ -11,3 +13,5 @@ export interface WidgetComponent {
complete: EventEmitter<any>;
cancel: EventEmitter<any>;
}

export type Widget = DynamicComponent<WidgetComponent>;

0 comments on commit 0ca4281

Please sign in to comment.