How to access a js function with a default function parameter

Hi,
i’m trying to use react-admin from kotlinjs

I can’t find the right syntax to translate in kotlin, this simple page:

import * as React from "react";
import { Admin } from 'react-admin';
import jsonServerProvider from 'ra-data-json-server';

const dataProvider = jsonServerProvider('https://jsonplaceholder.typicode.com');

const App = () => <Admin dataProvider={dataProvider} />;

export default App;

In particular the function jsonServerProvider has a default parameter (an http client) defined in another js package (ra-core):

What is the correct way to translate this assignment in kotlin ?

const dataProvider = jsonServerProvider(‘https://jsonplaceholder.typicode.com’);

//export default (apiUrl, httpClient = fetchUtils.fetchJson): DataProvider => ({

//export const fetchJson = (url, options: Options = {}) => {

https://github.com/marmelab/react-admin/blob/master/packages/ra-data-json-server/src/index.ts

https://github.com/marmelab/react-admin/blob/master/packages/ra-core/src/dataProvider/fetch.ts