Skip to content

Types not available for use in Typescript project #54

@jsrkstr

Description

@jsrkstr

It would be great if you could add types of using this plugin in typescript project. Otherwise could you tell how to write custom types for bypass type checks?

I tried adding this to a type definition file but it didn't work -

/**
 * Augment the typings of Vue.js
 */
  
declare module 'vue/types/vue' {
  import Vue from 'vue';
  export interface Vue {
    $apollo: any;
  }
}

declare module 'vue/types/options' {
  import Vue from 'vue';
  export interface ComponentOptions<V extends Vue> {
    apollo?: any;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions