We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1cd0ffc + 2fda0aa commit 287a255Copy full SHA for 287a255
tree.view.ts
@@ -43,10 +43,10 @@ namespace $.$$ {
43
const pipeline = this.pipeline()
44
const last = pipeline[ pipeline.length - 1 ]
45
46
- const type = last ? map[ last ].output.split('.').filter( Boolean ).reverse() : [ 'text' ]
+ const type = last ? map[ last as keyof typeof map ].output.split('.').filter( Boolean ).reverse() : [ 'text' ]
47
if( !type.length ) return Object.keys( map )
48
49
- return Object.keys( map ).filter( id => {
+ return (Object.keys( map ) as (keyof typeof map)[]).filter( id => {
50
51
const diff = $mol_diff_path( type , map[ id ].input.split('.').reverse() )
52
if( !diff.prefix.length ) return false
0 commit comments