Ok so I am trying to transition from WKT to WKB being stored in the database. First step was to rewrite OL's reader from WKT to WKB.
What I noticed however is that WKB returns FeatureLike instead of Feature<Geometry> and I can't perform actions like feature.setId() or feature.setStyle().
const feature = new WKT().readFeature(props.wktGeometry);
feature.setId() // works
feature.setStyle() // works
into
const feature = new WKB().readFeature(props.wkbGeometry);
feature.setId() // doesn't work as it's 'FeatureLike'
feature.setStyle() // as above
Why is that happening and how to prevent it or how to properly convert FeatureLike to Feature<Geometry>?