Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const addItemData: (data: any) => void = (data: any) => {
const addDataOptions: portal.IAddItemDataOptions = {
id: itemId,
data: data,
authentication: authentication
};
portal.addItemData(addDataOptions).then(resolve, reject);
};