43aad4ab14
Implementation of LayersFlattener Implementation of Setting properties of a layer form script Update show/hide layer form script Update unit test of LayersIteratorTest
12 lines
490 B
TypeScript
12 lines
490 B
TypeScript
import * as tg from "generic-type-guard";
|
|
|
|
export const isSetPropertyEvent =
|
|
new tg.IsInterface().withProperties({
|
|
layerName: tg.isString,
|
|
propertyName: tg.isString,
|
|
propertyValue: tg.isUnion(tg.isString, tg.isUnion(tg.isNumber, tg.isUnion(tg.isBoolean, tg.isUndefined)))
|
|
}).get();
|
|
/**
|
|
* A message sent from the iFrame to the game to change the value of the property of the layer
|
|
*/
|
|
export type SetPropertyEvent = tg.GuardedType<typeof isSetPropertyEvent>; |