Skip to content

Commit ba8fcc7

Browse files
update typescript to try to fix github build error
1 parent fafc279 commit ba8fcc7

File tree

5 files changed

+159
-157
lines changed

5 files changed

+159
-157
lines changed

dist/plugin/VCodeBlock.vue.d.ts

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@ import { Props } from './types';
22

33
declare function copyCode(): void;
44
declare function runCode(): void;
5-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
5+
declare function __VLS_template(): {
6+
label?(_: {
7+
copyCode: typeof copyCode;
8+
copyStatus: "copy" | "success" | "failed";
9+
runCode: typeof runCode;
10+
}): any;
11+
tabs?(_: {
12+
copyCode: typeof copyCode;
13+
copyStatus: "copy" | "success" | "failed";
14+
runCode: typeof runCode;
15+
}): any;
16+
copyButton?(_: {
17+
copyStatus: "copy" | "success" | "failed";
18+
}): any;
19+
};
20+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
621
browserWindow: boolean;
722
cssPath: undefined;
823
code: string;
@@ -63,44 +78,31 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
6378
}, {
6479
highlightjs: boolean;
6580
prismjs: boolean;
81+
persistentCopyButton: boolean;
82+
floatingTabs: boolean;
83+
tabGap: string | number;
84+
copyTab: boolean;
85+
height: string | number;
86+
maxHeight: string | number;
87+
codeBlockRadius: string;
88+
runTab: boolean;
89+
tabs: boolean;
6690
browserWindow: boolean;
6791
cssPath: string;
68-
code: string | number | object | [];
69-
codeBlockRadius: string;
92+
code: object | [] | string | number;
7093
copyButton: boolean;
7194
copyIcons: boolean;
72-
copyTab: boolean;
7395
copyFailedText: string;
7496
copyText: string;
7597
copySuccessText: string;
76-
floatingTabs: boolean;
77-
height: string | number;
7898
indent: number;
7999
label: string;
80100
lang: string;
81-
maxHeight: string | number;
82-
persistentCopyButton: boolean;
83101
prismPlugin: boolean;
84-
runTab: boolean;
85102
runText: string;
86-
tabGap: string | number;
87-
tabs: boolean;
88103
theme: string | boolean;
89-
}, {}>, {
90-
label?(_: {
91-
copyCode: typeof copyCode;
92-
copyStatus: "copy" | "success" | "failed";
93-
runCode: typeof runCode;
94-
}): any;
95-
tabs?(_: {
96-
copyCode: typeof copyCode;
97-
copyStatus: "copy" | "success" | "failed";
98-
runCode: typeof runCode;
99-
}): any;
100-
copyButton?(_: {
101-
copyStatus: "copy" | "success" | "failed";
102-
}): any;
103-
}>;
104+
}, {}>;
105+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
104106
export default _default;
105107
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
106108
type __VLS_TypePropsToRuntimeProps<T> = {

dist/vue-code-block.cjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-code-block.es.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"stylelint-config-standard": "^36.0.1",
124124
"stylelint-order": "^6.0.4",
125125
"stylelint-scss": "^6.3.2",
126-
"typescript": "^5.7.2",
126+
"typescript": "^5.6.2",
127127
"unplugin-auto-import": "^0.17.6",
128128
"vite": "^5.3.3",
129129
"vite-plugin-css-injected-by-js": "^3.5.1",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy