assemblee-virtuelle / semapps

A toolbox to create semantic web applications
https://semapps.org
Apache License 2.0
88 stars 9 forks source link

Use correct type for semantic-data-provider fetch function #1327

Closed Laurin-W closed 3 weeks ago

Laurin-W commented 3 weeks ago

I was running into issues because the semantic data provider's fetch function options parameter type was different to the options of typeof fetchUtils.fetchJson. The data provider's fetch property now has the type typeof fetchUtils.fetchJson.

Laurin-W commented 3 weeks ago

Also added the type information for the function that creates a data provider using a config objects.