-
// index.d.ts
import type { Computed } from 'vue';
import type { UserInfo } from '../models/user';
export default class UpgradeService {
public readonly userInfo: ComputedRef<UserInfo | undefined>;
} I'm using
Maybe this tool has problems with vue's type declartions, but I don't want to bundle types from vue at all. What should I do? |
Beta Was this translation helpful? Give feedback.
Answered by
ylc395
Oct 22, 2024
Replies: 2 comments 1 reply
-
Can you share repro so I can take a look? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I resolve this problem by patching vue@2.17.16: diff --git a/node_modules/vue/types/vue.d.ts b/node_modules/vue/types/vue.d.ts
index f158cf0..74ce6f7 100644
--- a/node_modules/vue/types/vue.d.ts
+++ b/node_modules/vue/types/vue.d.ts
@@ -429,7 +429,7 @@ export interface VueConstructor<V extends Vue = Vue> {
): VueConstructor<V>
mixin(mixin: VueConstructor | ComponentOptions<Vue>): VueConstructor<V>
compile(template: string): {
- render(createElement: typeof Vue.prototype.$createElement): VNode
+ render(createElement: CreateElement): VNode
staticRenderFns: (() => VNode)[]
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ylc395
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I resolve this problem by patching vue@2.17.16: