Skip to content

Commit

Permalink
Fix wrong fieldName type on subscriptionField (and fix backingTypes.s…
Browse files Browse the repository at this point in the history
…pec.ts) (#159)

* Fix wrong fieldName type on subscriptionField

Closes #158

* Try to fix backingTypes.spec.ts

* Remove unused NexusSchemaExtensions import
  • Loading branch information
P4sca1 authored and tgriesser committed Jun 19, 2019
1 parent 874d609 commit b1089a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/definitions/subscriptionField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface SubscribeFieldConfig<
}

export function subscriptionField<FieldName extends string>(
fieldName: string,
fieldName: FieldName,
config:
| SubscribeFieldConfig<"Subscription", FieldName>
| (() => SubscribeFieldConfig<"Subscription", FieldName>)
Expand Down
2 changes: 0 additions & 2 deletions tests/backingTypes.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import path from "path";
import { core, makeSchema, queryType, enumType } from "../src";
import { A, B } from "./_types";
import { NexusSchemaExtensions } from "../src/core";

const { Typegen, TypegenMetadata } = core;

Expand Down Expand Up @@ -46,7 +45,6 @@ function getSchemaWithConstEnums() {

describe("backingTypes", () => {
let metadata: core.TypegenMetadata;
let schemaExtensions: NexusSchemaExtensions;

beforeEach(async () => {
metadata = new TypegenMetadata({
Expand Down

0 comments on commit b1089a5

Please sign in to comment.