Even better typing of messages in /map

This commit is contained in:
David Négrier 2021-12-14 19:03:02 +01:00
parent 2fff6ae41e
commit 10b7fee502

View file

@ -16,7 +16,10 @@ export const isMapDetailsData = new tg.IsInterface()
textures: tg.isArray(isCharacterTexture),
contactPage: tg.isUnion(tg.isString, tg.isUndefined),
authenticationMandatory: tg.isUnion(tg.isBoolean, tg.isUndefined),
group: tg.isString,
group: tg.isNullable(tg.isString),
})
.withOptionalProperties({
iframeAuthentication: tg.isNullable(tg.isString),
})
.get();