How can I define: ``` rowExpansionTemplate?(dat...
# javascript
d
How can I define:
Copy code
rowExpansionTemplate?(data: any): JSX.Element | undefined;
    rowGroupHeaderTemplate?(data: any, index: number): React.ReactNode | undefined;
In a Kotlin js react component wrapper?
b
Copy code
rowExpansionTemplate?(data: any): JSX.Element | undefined;
==
Copy code
public var rowExpansionTemplate: ((data: Any?): dynamic;
get() = definedExternally
set(value) = definedExternally
Might be RElement interface in kotlin-react to place instead of dynamic
d
Thanks! I'll give that a try. Btw it seems to be
ReactElement
...
Copy code
React.ReactNode
is the same thing?
b
No, ReactNode is a union type. You have to use dynamic for that and just note in docs what union it expects
d
Oh, ok, thanks!