Hello! How can i allow this in my project? `Functi...
# javascript
a
Hello! How can i allow this in my project?
Function types with receiver are prohibited in external declarations
t
Legacy or IR?
a
IR
m
I assume youre trying to expose javascript functions that look like this to kotlin code
package.funName = function() {…}
by doing something like
external fun package.funName()
a
no, i’m trying to pass lambda with receiver in props for react
image.png
something like this
t
Why not like this?
var renderItem: FC<P>
a
oh, thanks! i’m just not used to new api yet 🙂