graphql-typed
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,2 +0,2 @@ | ||
import { DocumentNode as BaseDocumentNode, Source, ParseOptions } from 'graphql'; | ||
import type { DocumentNode as BaseDocumentNode, Source, ParseOptions } from 'graphql'; | ||
export interface GraphQLOperation<Data = {}, Variables = {}, DeepPartial = {}> { | ||
@@ -15,6 +15,6 @@ readonly __typeData?: Data; | ||
} | ||
export declare type GraphQLData<T> = T extends GraphQLOperation<infer Data, any, any> ? Data : never; | ||
export declare type GraphQLVariables<T> = T extends GraphQLOperation<any, infer Variables, any> ? Variables : never; | ||
export declare type GraphQLDeepPartial<T> = T extends GraphQLOperation<any, any, infer DeepPartial> ? DeepPartial : never; | ||
export type GraphQLData<T> = T extends GraphQLOperation<infer Data, any, any> ? Data : never; | ||
export type GraphQLVariables<T> = T extends GraphQLOperation<any, infer Variables, any> ? Variables : never; | ||
export type GraphQLDeepPartial<T> = T extends GraphQLOperation<any, any, infer DeepPartial> ? DeepPartial : never; | ||
export declare const parse: <Data = {}, Variables = {}, DeepPartial = {}>(source: string | Source, options?: ParseOptions) => DocumentNode<Data, Variables, DeepPartial>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
module.exports = require("./build/cjs/index.js"); | ||
module.exports = require("./build/cjs/index.js"); |
{ | ||
"name": "graphql-typed", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A more strongly typed version of GraphQL's DocumentNode.", |
@@ -12,3 +12,3 @@ # `graphql-typed` | ||
```bash | ||
$ yarn add graphql-typed | ||
yarn add graphql-typed | ||
``` | ||
@@ -15,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
28
5173