... define the callback signature in where clause #[napi] fn test_callback<T>(callback: T) where T: Fn(String) -> Result<()> {}.
確定! 回上一頁