gql.tada 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/gql-tada.d.ts +15 -4
  2. package/package.json +1 -1
@@ -943,11 +943,11 @@ type getFragmentsOfDocumentsRec<Documents> = Documents extends readonly [
943
943
  : {}) &
944
944
  getFragmentsOfDocumentsRec<Rest>
945
945
  : {};
946
- type makeFragmentRef<Definition extends FragmentDefDecorationLike> = {
946
+ type makeFragmentRef<Definition extends FragmentDefDecorationLike> = obj<{
947
947
  [$tada.fragmentRefs]?: {
948
948
  [Name in Definition['name']['value']]: Definition[$tada.fragmentId];
949
949
  };
950
- };
950
+ }>;
951
951
  type makeUndefinedFragmentRef<FragmentName extends string> = {
952
952
  [$tada.fragmentRefs]?: {
953
953
  [Name in FragmentName]: 'Undefined Fragment';
@@ -1249,9 +1249,17 @@ type getInputObjectTypeRec<
1249
1249
  name: any;
1250
1250
  type: any;
1251
1251
  }
1252
- ? {
1253
- [Name in InputField['name']]: unwrapType<InputField['type'], Introspection>;
1252
+ ? InputField extends {
1253
+ type: {
1254
+ kind: 'NON_NULL';
1255
+ };
1254
1256
  }
1257
+ ? {
1258
+ [Name in InputField['name']]: unwrapType<InputField['type'], Introspection>;
1259
+ }
1260
+ : {
1261
+ [Name in InputField['name']]?: unwrapType<InputField['type'], Introspection>;
1262
+ }
1255
1263
  : {}) &
1256
1264
  getInputObjectTypeRec<Rest, Introspection>
1257
1265
  : {};
@@ -1328,6 +1336,9 @@ type getVariablesRec<
1328
1336
  }
1329
1337
  ? Variable extends {
1330
1338
  defaultValue: undefined;
1339
+ type: {
1340
+ kind: Kind.NON_NULL_TYPE;
1341
+ };
1331
1342
  }
1332
1343
  ? {
1333
1344
  [Name in Variable['variable']['name']['value']]: unwrapTypeRef<
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gql.tada",
3
3
  "description": "The spec-compliant & magical GraphQL query language engine in the TypeScript type system",
4
- "version": "1.0.0-beta.0",
4
+ "version": "1.0.0-beta.1",
5
5
  "author": "0no.co <hi@0no.co>",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./dist/gql-tada",