fix typescript compile error

This commit is contained in:
Thibault Duplessis 2018-03-07 11:53:09 -05:00
parent 866d02c4cb
commit 055e52793b

View file

@ -132,7 +132,7 @@ export function build(root: Tree.Node): TreeWrapper {
const newPath = path + node.id, const newPath = path + node.id,
existing = nodeAtPathOrNull(newPath); existing = nodeAtPathOrNull(newPath);
if (existing) { if (existing) {
(['dests', 'drops', 'clock'] as [keyof Tree.Node]).forEach(key => { (['dests', 'drops', 'clock'] as Array<keyof Tree.Node>).forEach(key => {
if (defined(node[key]) && !defined(existing[key])) existing[key] = node[key]; if (defined(node[key]) && !defined(existing[key])) existing[key] = node[key];
}); });
return newPath; return newPath;