Skip to content

Conversation

@pskelin
Copy link
Contributor

@pskelin pskelin commented Jan 27, 2026

Instance check functions should be implemented outside of the components that they check for, since anyone checking for an instance will also define the component they check the instance for.

This change extracts all instance checks in a utils module so the components are not imported and defined as a side effect.

Additionally, the instance check is unified and the type checking is improved (the prop being checked for should exist in the return type).

@ui5-webcomponents-bot
Copy link
Collaborator

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview January 28, 2026 06:15 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants