package.dist.getSharedResource.d.ts Maven / Gradle / Ivy
/**
* Use this method to initialize/get resources that you would like to be shared among UI5 Web Components runtime instances.
* The data will be accessed via a singleton "ui5-shared-resources" HTML element in the "body" element of the page.
*
* @public
* @param namespace Unique ID of the resource, may contain "." to denote hierarchy
* @param initialValue Object or primitive that will be used as an initial value if the resource does not exist
* @returns {*}
*/
declare const getSharedResource: (namespace: string, initialValue: T) => T;
export default getSharedResource;