evenchange4 / graphql.macro

Compile GraphQL AST at build-time with babel-plugin-macros.
MIT License
239 stars 21 forks source link

Update typings to allow additional DocumentNode #78

Closed danielkcz closed 5 years ago

danielkcz commented 5 years ago

This is to cover documents like following. The actual code supports it, but it gives annoying errors in TypeScript.

const MyQuery = gql`
  query {
    foo {
      ...Baz
    }
  }
  ${BazFragment}
`
codecov[bot] commented 5 years ago

Codecov Report

Merging #78 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #78   +/-   ##
=======================================
  Coverage   95.45%   95.45%           
=======================================
  Files           5        5           
  Lines          44       44           
  Branches        6        6           
=======================================
  Hits           42       42           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c2b34a1...626de34. Read the comment docs.

evenchange4 commented 5 years ago

Thanks! Released v1.3.5 with your changes.