Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Module augmentation #87

Unanswered
mokone91 asked this question in Q&A
Discussion options

Hi! as im working on library now^ im expect that the vuei18n already installed in parent project.
But i faced with problem that ts do not see $t property in component
My shim looks like:

declare module '*.vue' {
 import { defineComponent } from 'vue-demi';
 const Component: ReturnType<typeof defineComponent>;
 export default Component;
}

how can i augment it with $t?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #86 on July 31, 2021 11:37.

AltStyle によって変換されたページ (->オリジナル) /