Commit 2d1f8bfa authored by Fabien Amarger's avatar Fabien Amarger
Browse files

feat: [fetchData] Add the fetchDataFromURI function to the simplerender signature

parent 1381aa8099bc
......@@ -53,6 +53,11 @@ export interface ViewRendering {
suggestedResources?: Resource[];
}
export type FetchDataFromURIFunction = (
uri: string,
respFormat?: {[key: string]: string}
) => Promise<{[key: string]: string}>;
/**
* The implementation of a view
*/
......@@ -82,7 +87,11 @@ export interface ViewImplementation {
target: Resource
): ViewRendering;
simpleRender?: (context: $rdf.Formula, target: string) => Element;
simpleRender?: (
context: $rdf.Formula,
target: string,
fetchDataFromURI?: FetchDataFromURIFunction
) => Element;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment