File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
packages/components/src/components/hds/code-block Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,17 @@ import { modifier } from 'ember-modifier';
15
15
import Prism from 'prismjs' ;
16
16
17
17
import type { SafeString } from '@ember/template' ;
18
- import type { ComponentLike } from '@glint/template' ;
18
+ import type { WithBoundArgs } from '@glint/template' ;
19
19
20
20
import type { HdsCodeBlockTitleSignature } from './title' ;
21
21
import type { HdsCodeBlockDescriptionSignature } from './description' ;
22
22
import { HdsCodeBlockLanguageValues } from './types.ts' ;
23
23
import type { HdsCodeBlockLanguages } from './types.ts' ;
24
24
import type { HdsCopyButtonSignature } from '../copy/button/index.ts' ;
25
25
26
+ import HdsCodeBlockTitleComponent from './title.ts' ;
27
+ import HdsCodeBlockDescriptionComponent from './description.ts' ;
28
+
26
29
import 'prismjs/plugins/line-numbers/prism-line-numbers' ;
27
30
import 'prismjs/plugins/line-highlight/prism-line-highlight' ;
28
31
@@ -63,8 +66,14 @@ export interface HdsCodeBlockSignature {
63
66
Blocks : {
64
67
default : [
65
68
{
66
- Title ?: ComponentLike < HdsCodeBlockTitleSignature > ;
67
- Description ?: ComponentLike < HdsCodeBlockDescriptionSignature > ;
69
+ Title ?: WithBoundArgs <
70
+ typeof HdsCodeBlockTitleComponent ,
71
+ 'didInsertNode'
72
+ > ;
73
+ Description ?: WithBoundArgs <
74
+ typeof HdsCodeBlockDescriptionComponent ,
75
+ 'didInsertNode'
76
+ > ;
68
77
} ,
69
78
] ;
70
79
} ;
You can’t perform that action at this time.
0 commit comments