@ts-gql/tag
Advanced tools
Comparing version 0.4.0 to 0.5.0
# @ts-gql/tag | ||
## 0.5.0 | ||
### Minor Changes | ||
- [`abba421`](https://github.com/Thinkmill/ts-gql/commit/abba4214b10bc878de9c7c9e350e5ef04f3ef11f) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Include all documents on typed document nodes | ||
## 0.4.0 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,6 @@ import { DocumentNode } from "graphql"; | ||
export type BaseTypedDocument = { document?: string; result: any }; | ||
export type BaseTypedDocument = { | ||
result: any; | ||
documents: Record<string, BaseDocumentTypes>; | ||
}; | ||
@@ -42,2 +45,6 @@ export type BaseTypedQuery = BaseTypedDocument & { | ||
export type AllDocuments< | ||
Node extends TypedDocumentNode<BaseDocumentTypes> | ||
> = Node["___type"]["documents"]; | ||
interface GqlTag { | ||
@@ -44,0 +51,0 @@ ( |
{ | ||
"name": "@ts-gql/tag", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"main": "dist/tag.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/tag.esm.js", |
5378
77