@equinor/echo-framework 0.18.10 → 0.18.11-beta-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RegisteredHookName } from '../../hooks/hookLibrary';
|
|
2
|
+
/**
|
|
3
|
+
* For echo-framework private usage only! Should not be exported directly from the lib.
|
|
4
|
+
*
|
|
5
|
+
* Function that will fetch a hook and its functionality from echopediaWeb code base
|
|
6
|
+
* If the code using this isn't running in echopediaWeb context (eg. it runs in echo cli / client) the
|
|
7
|
+
* exception is caught in code, and instead of the hook we just return a method with a log statement
|
|
8
|
+
* @export
|
|
9
|
+
* @return {*} {SetActiveTagNo}
|
|
10
|
+
*/
|
|
11
|
+
export declare function useHookFromRegistry<T>(hookName: RegisteredHookName, ...restOfArgs: unknown[]): T;
|