Skip to content

Commit ff8a5aa

Browse files
author
Matt Mazzola
committed
Remove IEmbedConstructor interface since it's dual maintenance problem with Embed constructor
1 parent 703debb commit ff8a5aa

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

‎src/embed.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ export interface IInternalEventHandler<T> {
4343
handle(event: service.IEvent<T>): void;
4444
}
4545

46-
export interface IEmbedConstructor {
47-
new (service: service.Service, hpmFactory: service.IHpmFactory, element: HTMLElement, config: IEmbedConfiguration): Embed;
48-
type: string;
49-
}
50-
5146
export abstract class Embed {
5247
public static embedUrlAttribute = 'powerbi-embed-url';
5348
public static accessTokenAttribute = 'powerbi-access-token';

‎src/service.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Service {
5454
* TODO: See if it's possible to remove need for this interface and just use Embed base object as common between Tile and Report
5555
* This was only put it to allow both types of components to be in the same list
5656
*/
57-
private static components: embed.IEmbedConstructor[] = [
57+
private static components: (typeof Report | typeof Tile)[] = [
5858
Tile,
5959
Report
6060
];

0 commit comments

Comments
 (0)