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 2626
2727<script setup lang="ts">
2828 import { defineComponent , ref , toRefs } from ' vue' ;
29- import { codeBlockProps , codeBlockInstance } from ' ./types' ;
29+ import {
30+ codeBlockProps ,
31+ codeBlockPropsTypes ,
32+ codeBlockInstance
33+ } from ' ./types' ;
3034 import { useCodeBlock } from ' ./use-code-block' ;
3135 import { parseCodeIntoLines } from ' ../utils' ;
3236
3640 defineComponent <codeBlockInstance >({
3741 name: ' CodeBlock' ,
3842 props: codeBlockProps (),
39- setup(props : codeBlockProps ) {
43+ setup(props : codeBlockPropsTypes ) {
4044 useCodeBlock (toRefs (props ));
4145 },
4246 slots: { default: ' Default' }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export const codeBlockProps = () =>
6060 }
6161 } as const ) ;
6262
63- export type codeBlockProps = ExtractPropTypes <
63+ export type codeBlockPropsTypes = ExtractPropTypes <
6464 ReturnType < typeof codeBlockProps >
6565> ;
6666
@@ -70,7 +70,7 @@ export type codeBlockExpose = {
7070} ;
7171
7272export type codeBlockInstance = ComponentPublicInstance <
73- codeBlockProps ,
73+ codeBlockPropsTypes ,
7474 codeBlockExpose
7575> ;
7676
You can’t perform that action at this time.
0 commit comments