Bokehjs plot.select gives invalid selector error

Hi
How should I use plot.select in bokehjs (I mean javascript not python)?
In bokehjs when i’m trying to select glyphs or … like:

plot.select('name')

It works but something like:

plot.select({name: 'name', type: Line})

It gives invalid selector error!

Looking at the actual definition of select on the BokehJS side it looks like you can only do either:

plot.select('some_name')  # get all objects with name = 'some_name'

or

plot.select(Line)  # get all objects of type Line

If you’d like to propose expanding the capability on the BokehJS side, a GitHub issue would be appropriate.