2020-07-27 22:36:07 +02:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
2021-06-24 10:09:10 +02:00
|
|
|
export const isItemEventMessageInterface = new tg.IsInterface()
|
|
|
|
.withProperties({
|
2020-07-27 22:36:07 +02:00
|
|
|
itemId: tg.isNumber,
|
|
|
|
event: tg.isString,
|
|
|
|
state: tg.isUnknown,
|
|
|
|
parameters: tg.isUnknown,
|
2021-06-24 10:09:10 +02:00
|
|
|
})
|
|
|
|
.get();
|
2020-07-27 22:36:07 +02:00
|
|
|
export type ItemEventMessageInterface = tg.GuardedType<typeof isItemEventMessageInterface>;
|