File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- import { values } from "lodash" ;
1
+ import { pickBy , values } from "lodash" ;
2
2
import { Graph } from "../../typings/Types" ;
3
3
import { Disposable , IDE } from "../ide.types" ;
4
4
import SpyConfiguration from "./SpyConfiguration" ;
5
5
import SpyMessages , { Message } from "./SpyMessages" ;
6
6
7
7
export interface SpyIDERecordedValues {
8
- configuration : undefined ;
9
- messages : Message [ ] | undefined ;
8
+ messages ?: Message [ ] ;
10
9
}
11
10
12
11
export default class SpyIDE implements IDE {
@@ -28,7 +27,9 @@ export default class SpyIDE implements IDE {
28
27
messages : this . messages . getSpyValues ( ) ,
29
28
} ;
30
29
31
- return values ( ret ) . every ( ( value ) => value == null ) ? undefined : ret ;
30
+ return values ( ret ) . every ( ( value ) => value == null )
31
+ ? undefined
32
+ : pickBy ( ret , ( value ) => value != null ) ;
32
33
}
33
34
}
34
35
You can’t perform that action at this time.
0 commit comments