chayns-api 2.4.20 → 2.4.21
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.
|
@@ -253,7 +253,7 @@ export declare const getStyleSettings: () => import("../types/IChaynsReact").Cha
|
|
|
253
253
|
* Returns the customFunction. Prefer usage via useCustomFunction when possible
|
|
254
254
|
* @param key functionName
|
|
255
255
|
*/
|
|
256
|
-
export declare const getCustomFunction: <A extends
|
|
256
|
+
export declare const getCustomFunction: <A extends (...args: any[]) => Promise<any>>(key: string) => A;
|
|
257
257
|
export declare const user: UserInfo;
|
|
258
258
|
export declare const site: ChaynsApiSite;
|
|
259
259
|
export declare const device: ChaynsApiDevice;
|
|
@@ -451,7 +451,7 @@ export interface ChaynsReactFunctions {
|
|
|
451
451
|
}) => Promise<void>;
|
|
452
452
|
}
|
|
453
453
|
export type ChaynsReactCustomFunctions = {
|
|
454
|
-
[key: string]:
|
|
454
|
+
[key: string]: (...args: any[]) => Promise<any>;
|
|
455
455
|
};
|
|
456
456
|
export type DialogResult = {
|
|
457
457
|
open: () => Promise<any>;
|
|
@@ -29,6 +29,6 @@ declare class StaticChaynsApi {
|
|
|
29
29
|
runtimeEnvironment: import("../types/IChaynsReact").RuntimeEnviroment | string;
|
|
30
30
|
};
|
|
31
31
|
getStyleSettings: () => import("../types/IChaynsReact").ChaynsStyleSettings | undefined;
|
|
32
|
-
getCustomFunction: (key: string) =>
|
|
32
|
+
getCustomFunction: (key: string) => (...args: any[]) => Promise<any>;
|
|
33
33
|
}
|
|
34
34
|
export default StaticChaynsApi;
|