@ts-gql/tag
Advanced tools
Comparing version 0.3.0 to 0.4.0
# @ts-gql/tag | ||
## 0.4.0 | ||
### Minor Changes | ||
- [`b83e180`](https://github.com/Thinkmill/ts-gql/commit/b83e180ea94cd7fb1d66d5c7835f333a5fcf56f5) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename some types | ||
## 0.3.0 | ||
@@ -4,0 +10,0 @@ |
@@ -5,5 +5,5 @@ import { DocumentNode } from "graphql"; | ||
type BaseTypedDocument = { document?: string; result: any }; | ||
export type BaseTypedDocument = { document?: string; result: any }; | ||
type BaseTypedQuery = BaseTypedDocument & { | ||
export type BaseTypedQuery = BaseTypedDocument & { | ||
type: "query"; | ||
@@ -13,3 +13,3 @@ variables: Record<string, any> | undefined; | ||
type BaseTypedMutation = BaseTypedDocument & { | ||
export type BaseTypedMutation = BaseTypedDocument & { | ||
type: "mutation"; | ||
@@ -19,22 +19,26 @@ variables: Record<string, any> | undefined; | ||
type BaseOperations = BaseTypedQuery | BaseTypedMutation; | ||
export type BaseOperations = BaseTypedQuery | BaseTypedMutation; | ||
type BaseTypedFragment = BaseTypedDocument & { | ||
export type BaseTypedFragment = BaseTypedDocument & { | ||
type: "fragment"; | ||
}; | ||
type BaseDocumentTypes = BaseOperations | BaseTypedFragment; | ||
export type BaseDocumentTypes = BaseOperations | BaseTypedFragment; | ||
type TypedDocumentNode<TypedDocument extends BaseDocumentTypes> = { | ||
export type TypedDocumentNode<TypedDocument extends BaseDocumentTypes> = { | ||
___type: TypedDocument; | ||
}; | ||
type DocumentResult< | ||
Node extends TypedDocumentNode<BaseDocumentTypes> | ||
export type OperationData< | ||
Node extends TypedDocumentNode<BaseOperations> | ||
> = Node["___type"]["result"]; | ||
type DocumentVariables< | ||
export type OperationVariables< | ||
Node extends TypedDocumentNode<BaseOperations> | ||
> = Node["___type"]["variables"]; | ||
export type FragmentData< | ||
Node extends TypedDocumentNode<BaseTypedFragment> | ||
> = Node["___type"]["result"]; | ||
interface GqlTag { | ||
@@ -41,0 +45,0 @@ ( |
{ | ||
"name": "@ts-gql/tag", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"main": "dist/tag.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/tag.esm.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4991
71