Skip to content

Module augmentation #86

@mokone91

Description

@mokone91

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions