Comparing version 1.1.0 to 1.1.1-canary-caa94dc0f10b22d8bf6d418eb23e14f1a586b416
@@ -864,5 +864,2 @@ import { Kind, OperationTypeNode, DocumentNode } from '@0no-co/graphql.web'; | ||
} | ||
interface DocumentDefDecorationLike { | ||
[$tada.definition]?: FragmentDefDecorationLike; | ||
} | ||
type isMaskedRec<Directives extends readonly unknown[] | undefined> = Directives extends readonly [ | ||
@@ -890,3 +887,3 @@ infer Directive, | ||
} | ||
: never; | ||
: void; | ||
type getFragmentsOfDocumentsRec<Documents> = Documents extends readonly [ | ||
@@ -946,6 +943,4 @@ infer Document, | ||
}; | ||
type makeDefinitionDecoration<Definition> = { | ||
[$tada.definition]?: Definition extends DocumentDefDecorationLike[$tada.definition] | ||
? Definition | ||
: never; | ||
type makeDefinitionDecoration<Definition = FragmentDefDecorationLike> = { | ||
[Key in $tada.definition]?: Definition; | ||
}; | ||
@@ -1458,3 +1453,3 @@ | ||
const In extends stringLiteral<In>, | ||
const Fragments extends readonly [...DocumentDefDecorationLike[]], | ||
const Fragments extends readonly [...makeDefinitionDecoration[]], | ||
>( | ||
@@ -1545,3 +1540,3 @@ input: In, | ||
}, | ||
Decoration = never, | ||
Decoration = void, | ||
> extends DocumentNode, | ||
@@ -1597,3 +1592,3 @@ DocumentDecoration<Result, Variables>, | ||
*/ | ||
type FragmentOf<Document extends DocumentDefDecorationLike> = makeFragmentRef<Document>; | ||
type FragmentOf<Document extends makeDefinitionDecoration> = makeFragmentRef<Document>; | ||
type mirrorFragmentTypeRec<Fragment, Data> = Fragment extends (infer Value)[] | ||
@@ -1608,3 +1603,3 @@ ? mirrorFragmentTypeRec<Value, Data>[] | ||
: Data; | ||
type fragmentOfTypeRec<Document extends DocumentDefDecorationLike> = | ||
type fragmentOfTypeRec<Document extends makeDefinitionDecoration> = | ||
| readonly fragmentOfTypeRec<Document>[] | ||
@@ -1663,3 +1658,3 @@ | FragmentOf<Document> | ||
declare function readFragment< | ||
const Document extends DocumentDefDecorationLike & DocumentDecoration<any, any>, | ||
const Document extends makeDefinitionDecoration & DocumentDecoration<any, any>, | ||
const Fragment extends fragmentOfTypeRec<Document>, | ||
@@ -1666,0 +1661,0 @@ >( |
{ | ||
"name": "gql.tada", | ||
"description": "The spec-compliant & magical GraphQL query language engine in the TypeScript type system", | ||
"version": "1.1.0", | ||
"version": "1.1.1-canary-caa94dc0f10b22d8bf6d418eb23e14f1a586b416", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
87007
1732
2