Skip to content

Commit d882492

Browse files
author
Guillaume Chau
committed
fix(ts): import gql files, closes Akryum/vue-cli-plugin-apollo#180
1 parent edb272d commit d882492

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

types/gql.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
declare module '*.gql' {
2+
import { DocumentNode } from 'graphql'
3+
4+
const content: DocumentNode
5+
export default content
6+
7+
}
8+
9+
declare module '*.graphql' {
10+
import { DocumentNode } from 'graphql'
11+
12+
const content: DocumentNode
13+
export default content
14+
}

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import './vue'
2+
import './gql'
23
import { VueApollo } from './vue-apollo'
34
import { ApolloProvider } from './apollo-provider'
45

0 commit comments

Comments
 (0)