File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
packages/components/src/components/hds/code-editor Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @hashicorp/design-system-components " : patch
3+ ---
4+
5+ <!-- START components/code-editor -->
6+ ` CodeEditor ` - fixed the type of the CodeEditor signature to indicate that the ` [CE].Title ` and ` [CE].Description ` have bound arguments.
7+ <!-- END -->
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ import { action } from '@ember/object';
99import { modifier } from 'ember-modifier' ;
1010import { guidFor } from '@ember/object/internals' ;
1111
12+ import HdsCodeEditorDescription from './description.ts' ;
13+ import HdsCodeEditorTitle from './title.ts' ;
14+
15+ import type { WithBoundArgs } from '@glint/template' ;
1216import type Owner from '@ember/owner' ;
1317import type { ComponentLike } from '@glint/template' ;
1418import type { HdsCodeEditorSignature as HdsCodeEditorModifierSignature } from '../../../modifiers/hds-code-editor.ts' ;
@@ -28,8 +32,14 @@ export interface HdsCodeEditorSignature {
2832 Blocks : {
2933 default : [
3034 {
31- Title ?: ComponentLike < HdsCodeEditorTitleSignature > ;
32- Description ?: ComponentLike < HdsCodeEditorDescriptionSignature > ;
35+ Title ?: WithBoundArgs <
36+ typeof HdsCodeEditorTitle ,
37+ 'onInsert' | 'editorId'
38+ > ;
39+ Description ?: WithBoundArgs <
40+ typeof HdsCodeEditorDescription ,
41+ 'onInsert' | 'editorId'
42+ > ;
3343 Generic ?: ComponentLike < HdsCodeEditorGenericSignature > ;
3444 } ,
3545 ] ;
You can’t perform that action at this time.
0 commit comments