Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
@@ -1402,5 +1402,4 @@ import { | ||
* @example | ||
* | ||
* ``` | ||
* import { myIntrospection } from './myIntrospection'; | ||
* import type { myIntrospection } from './myIntrospection'; | ||
* | ||
@@ -1437,3 +1436,2 @@ * declare module 'gql.tada' { | ||
* @example | ||
* | ||
* ``` | ||
@@ -1469,2 +1467,6 @@ * import { graphql } from 'gql.tada'; | ||
} | ||
type schemaOfConfig<Setup extends AbstractSetupSchema> = mapIntrospection< | ||
matchOr<IntrospectionQuery, Setup['introspection'], never>, | ||
matchOr<ScalarsLike, Setup['scalars'], {}> | ||
>; | ||
/** Setup function to create a typed `graphql` document function with. | ||
@@ -1481,6 +1483,5 @@ * | ||
* @example | ||
* | ||
* ``` | ||
* import { initGraphQLTada } from 'gql.tada'; | ||
* import { myIntrospection } from './myIntrospection'; | ||
* import type { myIntrospection } from './myIntrospection'; | ||
* | ||
@@ -1499,6 +1500,3 @@ * export const graphql = initGraphQLTada<{ | ||
declare function initGraphQLTada<const Setup extends AbstractSetupSchema>(): GraphQLTadaAPI< | ||
mapIntrospection< | ||
matchOr<IntrospectionQuery, Setup['introspection'], never>, | ||
matchOr<ScalarsLike, Setup['scalars'], {}> | ||
> | ||
schemaOfConfig<Setup> | ||
>; | ||
@@ -1586,3 +1584,2 @@ /** Alias to a GraphQL parse function returning an exact document type. | ||
* @example | ||
* | ||
* ``` | ||
@@ -1643,3 +1640,2 @@ * import { FragmentOf, graphql, readFragment } from 'gql.tada'; | ||
* @example | ||
* | ||
* ``` | ||
@@ -1685,3 +1681,3 @@ * import { FragmentOf, graphql, readFragment } from 'gql.tada'; | ||
): fragmentOfTypeRec<Document> extends Fragment ? unknown : mirrorFragmentTypeRec<Fragment, Data>; | ||
declare const graphql: GraphQLTadaAPI<mapIntrospection<never, {}>>; | ||
declare const graphql: GraphQLTadaAPI<schemaOfConfig<setupSchema>>; | ||
@@ -1688,0 +1684,0 @@ export { |
{ | ||
"name": "gql.tada", | ||
"description": "The spec-compliant & magical GraphQL query language engine in the TypeScript type system", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"author": "0no.co <hi@0no.co>", | ||
@@ -6,0 +6,0 @@ "source": "./src/index.ts", |
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
87033
1741