diff --git a/app/lib/methods/getRoles.ts b/app/lib/methods/getRoles.ts index 91528d46c..e27a2d36c 100644 --- a/app/lib/methods/getRoles.ts +++ b/app/lib/methods/getRoles.ts @@ -15,7 +15,17 @@ export async function setRoles(): Promise { reduxStore.dispatch(setRolesAction(parsed)); } -export async function onRolesChanged(ddpMessage: any) { +interface IRolesChanged { + fields: { + args: { + type: string; + _id: string; + description: string; + }[]; + }; +} + +export async function onRolesChanged(ddpMessage: IRolesChanged): Promise { const { type, _id, description } = ddpMessage.fields.args[0]; if (/changed/.test(type)) { const db = database.active;