@redhat-cloud-services/types 0.0.16 → 0.0.18
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/index.d.ts +4 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -96,6 +96,8 @@ declare function OnChromeEvent<K extends 'APP_NAVIGATION' | 'NAVIGATION_TOGGLE'
|
|
|
96
96
|
callback: OnEventCallbacks[K]
|
|
97
97
|
): undefined | (() => void) | (() => undefined) | (() => boolean);
|
|
98
98
|
|
|
99
|
+
export type EnableTopicsArgs = [{ names: string[]; append?: boolean }] | string[];
|
|
100
|
+
|
|
99
101
|
export interface ChromeAPI {
|
|
100
102
|
/** @deprecated will be removed from useChrome hook */
|
|
101
103
|
$internal: any;
|
|
@@ -112,7 +114,7 @@ export interface ChromeAPI {
|
|
|
112
114
|
Catalog: typeof QuickStartCatalogPage;
|
|
113
115
|
};
|
|
114
116
|
chromeHistory: History;
|
|
115
|
-
isProd: boolean;
|
|
117
|
+
isProd: () => boolean;
|
|
116
118
|
appAction: (action: string) => void;
|
|
117
119
|
appNavClick: (payload: any) => void;
|
|
118
120
|
appObjectId: (objectId: string) => void;
|
|
@@ -160,7 +162,7 @@ export interface ChromeAPI {
|
|
|
160
162
|
};
|
|
161
163
|
helpTopics: {
|
|
162
164
|
addHelpTopics: (topics: HelpTopic[], enabled?: boolean) => void;
|
|
163
|
-
enableTopics: (...topicsNames:
|
|
165
|
+
enableTopics: (...topicsNames: EnableTopicsArgs) => Promise<HelpTopic[]>;
|
|
164
166
|
disableTopics: (...topicsNames: string[]) => void;
|
|
165
167
|
setActiveTopic: (name: string) => Promise<void>;
|
|
166
168
|
closeHelpTopic: () => void;
|