Skip to content

Conversation

@rubenthoms
Copy link
Collaborator

No description provided.

@rubenthoms rubenthoms self-assigned this May 26, 2025
@rubenthoms rubenthoms added the enhancement New feature or request label May 26, 2025
@rubenthoms rubenthoms changed the title Adjusted hover visualization transformer definition and added hook for subscribing to WorkbenchServices [DPF]: Adjusted hover visualization transformer definition and added hook for subscribing to WorkbenchServices May 26, 2025
@rubenthoms rubenthoms marked this pull request as ready for review May 26, 2025 08:28
@rubenthoms rubenthoms requested a review from Anders2303 May 26, 2025 09:28
@rubenthoms rubenthoms marked this pull request as draft May 26, 2025 13:39
Anders2303
Anders2303 previously approved these changes May 27, 2025
Copy link
Collaborator

@Anders2303 Anders2303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +146 to +154
type KeysMatching<T, Pattern extends string> = {
[K in keyof T]: K extends Pattern ? K : never;
}[keyof T];

type PickMatching<T, Pattern extends string> = {
[K in KeysMatching<T, Pattern>]: T[K];
};

export type HoverTopicDefinitions = PickMatching<GlobalTopicDefinitions, `global.hover${string}`>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of doing this, wouldn't it be easier to just split up the type in WorkbenchServices instead?

export type GlobalHoverTopicDefinitions {
  "global.hover...": ...;
  // ...
}
export type GlobalSyncValueTopicDefintions {
  "global.syncValue...": ...
  // ...
}

// etc...

export GlobalTopicDefinitions = GlobalHoverTopicDefinitions & GlobalSyncValueTopicDefintions & ...

@Anders2303 Anders2303 dismissed their stale review May 27, 2025 09:47

Wasnt ready yet

@anders-kiaer
Copy link
Collaborator

@Anders2303 and @rubenthoms to check if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants