2021-03-25 17:12:53 +01:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
2021-07-02 14:35:28 +02:00
|
|
|
export const isOpenCoWebsite = new tg.IsInterface()
|
|
|
|
.withProperties({
|
2021-03-25 17:12:53 +01:00
|
|
|
url: tg.isString,
|
2021-06-28 18:00:48 +02:00
|
|
|
allowApi: tg.isBoolean,
|
|
|
|
allowPolicy: tg.isString,
|
2021-07-02 14:35:28 +02:00
|
|
|
})
|
|
|
|
.get();
|
2021-03-25 17:12:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A message sent from the iFrame to the game to add a message in the chat.
|
|
|
|
*/
|
|
|
|
export type OpenCoWebSiteEvent = tg.GuardedType<typeof isOpenCoWebsite>;
|