Skip to content

Commit 0232e53

Browse files
Marc Lundgrenclaude
andcommitted
Fix PropTypes validation error for Composer component
Replace spread operator with explicit PropTypes definitions to avoid type conflicts between APIComposer.propTypes and ComposerCore.propTypes. This fixes CI error: "The types of 'suggestedActionsAccessKey[nominalTypeHack].type' are incompatible between these types" by explicitly defining PropTypes instead of using spread which was causing TypeScript validation conflicts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cfba69f commit 0232e53

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

packages/component/src/Composer.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,15 @@ Composer.defaultProps = {
540540
};
541541

542542
Composer.propTypes = {
543-
...APIComposer.propTypes,
544-
...ComposerCore.propTypes,
545-
children: PropTypes.any
543+
children: PropTypes.any,
544+
extraStyleSet: PropTypes.any,
545+
nonce: PropTypes.string,
546+
renderMarkdown: PropTypes.func,
547+
styleSet: PropTypes.any,
548+
suggestedActionsAccessKey: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.string]),
549+
webSpeechPonyfillFactory: PropTypes.func,
550+
decoratorMiddleware: PropTypes.any,
551+
htmlContentTransformMiddleware: PropTypes.any
546552
};
547553

548554
export default Composer;

0 commit comments

Comments
 (0)