-
Notifications
You must be signed in to change notification settings - Fork 51
CodeEditor: indicate that [CE].Title and [CE].Description have bound args
#3068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
zamoore
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
didoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left two super-nitpicky suggestions, but not blockers at all
| Description?: ComponentLike<HdsCodeEditorDescriptionSignature>; | ||
| Title?: WithBoundArgs< | ||
| typeof HdsCodeEditorTitle, | ||
| 'onInsert' | 'editorId' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] same order as in the template code
| 'onInsert' | 'editorId' | |
| 'editorId' | 'onInsert' |
| >; | ||
| Description?: WithBoundArgs< | ||
| typeof HdsCodeEditorDescription, | ||
| 'onInsert' | 'editorId' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 'onInsert' | 'editorId' | |
| 'editorId' | 'onInsert' |
📌 Summary
If merged, this PR would fix an issue that came up in the TypeScript showcase project. The CodeEditor component does not correctly indicate that some arguments for the
[CE].Titleand[CE].Descriptionare set by the index component.👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.
📋 PCI review checklist
Examples of changes to controls include access controls, encryption, logging, etc.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.