fix typescript compile error

chatSourceComplex
Thibault Duplessis 2018-03-07 11:53:09 -05:00
parent 866d02c4cb
commit 055e52793b
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ export function build(root: Tree.Node): TreeWrapper {
const newPath = path + node.id,
existing = nodeAtPathOrNull(newPath);
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];
});
return newPath;