@govflanders/vl-widget-global-header-types 0.0.2 → 0.0.3
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/dist/client.d.ts +2 -2
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export type Handlers = {
|
|
|
36
36
|
* @param profileConfig The profile configuration to set
|
|
37
37
|
* @returns A promise that resolves to true if the profile configuration was set, false otherwise
|
|
38
38
|
*/
|
|
39
|
-
setProfile: Handler<ProfileConfig
|
|
39
|
+
setProfile: Handler<Partial<ProfileConfig>, boolean>;
|
|
40
40
|
/**
|
|
41
41
|
* Set the main links
|
|
42
42
|
* @param mainLinks The main links to set
|
|
@@ -78,7 +78,7 @@ type ReturnTypes = {
|
|
|
78
78
|
[HandlersKey in keyof Handlers]: Handlers[HandlersKey] extends Handler<any, infer Return> ? Return : never;
|
|
79
79
|
};
|
|
80
80
|
export type GlobalHeaderClient = {
|
|
81
|
-
[K in keyof Handlers]: (args: ArgumentTypes[K]) => Promise<ReturnTypes[K]>;
|
|
81
|
+
[K in keyof Handlers]: ArgumentTypes[K] extends undefined ? () => Promise<ReturnTypes[K]> : (args: ArgumentTypes[K]) => Promise<ReturnTypes[K]>;
|
|
82
82
|
};
|
|
83
83
|
export type QueueItem<Key extends keyof Handlers> = {
|
|
84
84
|
[K in keyof Handlers]: {
|