pub fn convert_result<T>(result: Result<T, Error>) -> Result<T, JsValue>Expand description
Helper function to convert Result<T, Error> to Result<T, JsValue>
This function provides a secure conversion that:
- Maintains type safety
- Ensures consistent error handling
- Prevents information leakage