Hi, how can I use this typescript function from Ko...
# javascript
m
Hi, how can I use this typescript function from Kotlin
Copy code
export function getStroke(
  points: (number[] | { x: number; y: number; pressure?: number })[],
  options: StrokeOptions = {} as StrokeOptions
): number[][]
I was trying with this but I keep getting this error
getStroke is not a function
Copy code
@JsModule("perfect-freehand")
@JsNonModule
external fun getStroke(
    points: Array<dynamic>,
    options: dynamic
): Array<Array<Double>>
v
iirc you need
@file:JsModule
here
thank you color 1
m
It works, thanks!
👌 1