Splitting classes in separated files

This commit is contained in:
David Négrier 2021-06-21 12:26:12 +02:00
parent c17f006992
commit 620bd1ab2c
6 changed files with 85 additions and 82 deletions

View file

@ -0,0 +1,19 @@
import {sendToWorkadventure} from "../IframeApiContribution";
import type {ClosePopupEvent} from "../../Events/ClosePopupEvent";
export class Popup {
constructor(private id: number) {
}
/**
* Closes the popup
*/
public close(): void {
sendToWorkadventure({
'type': 'closePopup',
'data': {
'popupId': this.id,
} as ClosePopupEvent
});
}
}