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';
1515import Prism from 'prismjs' ;
1616
1717import type { SafeString } from '@ember/template' ;
18- import type { ComponentLike } from '@glint/template' ;
18+ import type { WithBoundArgs } from '@glint/template' ;
1919
2020import type { HdsCodeBlockTitleSignature } from './title' ;
2121import type { HdsCodeBlockDescriptionSignature } from './description' ;
2222import { HdsCodeBlockLanguageValues } from './types.ts' ;
2323import type { HdsCodeBlockLanguages } from './types.ts' ;
2424import type { HdsCopyButtonSignature } from '../copy/button/index.ts' ;
2525
26+ import HdsCodeBlockTitleComponent from './title.ts' ;
27+ import HdsCodeBlockDescriptionComponent from './description.ts' ;
28+
2629import 'prismjs/plugins/line-numbers/prism-line-numbers' ;
2730import 'prismjs/plugins/line-highlight/prism-line-highlight' ;
2831
@@ -63,8 +66,14 @@ export interface HdsCodeBlockSignature {
6366 Blocks : {
6467 default : [
6568 {
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+ > ;
6877 } ,
6978 ] ;
7079 } ;
You can’t perform that action at this time.
0 commit comments