File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/components/code-block Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 26
26
27
27
<script setup lang="ts">
28
28
import { defineComponent , ref , toRefs } from ' vue' ;
29
- import { codeBlockProps , codeBlockInstance } from ' ./types' ;
29
+ import {
30
+ codeBlockProps ,
31
+ codeBlockPropsTypes ,
32
+ codeBlockInstance
33
+ } from ' ./types' ;
30
34
import { useCodeBlock } from ' ./use-code-block' ;
31
35
import { parseCodeIntoLines } from ' ../utils' ;
32
36
36
40
defineComponent <codeBlockInstance >({
37
41
name: ' CodeBlock' ,
38
42
props: codeBlockProps (),
39
- setup(props : codeBlockProps ) {
43
+ setup(props : codeBlockPropsTypes ) {
40
44
useCodeBlock (toRefs (props ));
41
45
},
42
46
slots: { default: ' Default' }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export const codeBlockProps = () =>
60
60
}
61
61
} as const ) ;
62
62
63
- export type codeBlockProps = ExtractPropTypes <
63
+ export type codeBlockPropsTypes = ExtractPropTypes <
64
64
ReturnType < typeof codeBlockProps >
65
65
> ;
66
66
@@ -70,7 +70,7 @@ export type codeBlockExpose = {
70
70
} ;
71
71
72
72
export type codeBlockInstance = ComponentPublicInstance <
73
- codeBlockProps ,
73
+ codeBlockPropsTypes ,
74
74
codeBlockExpose
75
75
> ;
76
76
You can’t perform that action at this time.
0 commit comments