2021-05-18 11:33:16 +02:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-18 15:41:16 +02:00
|
|
|
export const isDataLayerEvent =
|
2021-05-18 11:33:16 +02:00
|
|
|
new tg.IsInterface().withProperties({
|
|
|
|
data: tg.isObject
|
|
|
|
}).get();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A message sent from the game to the iFrame when the data of the layers change after the iFrame send a message to the game that it want to listen to the data of the layers
|
|
|
|
*/
|
2021-05-18 15:41:16 +02:00
|
|
|
export type DataLayerEvent = tg.GuardedType<typeof isDataLayerEvent>;
|