Skip to content

Commit

Permalink
fix: fix a couple type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Jun 11, 2021
1 parent 656aa2d commit 453bf7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/core/src/refs/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ export class ImplementableObjectRef<
}

implement<Interfaces extends InterfaceParam<Types>[]>(
options: ObjectTypeOptions<Types, ObjectRef<Types>, Parent, Interfaces>,
options: ObjectTypeOptions<
Types,
ImplementableObjectRef<Types, Shape, Parent>,
Parent,
Interfaces
>,
) {
return this.builder.objectType(this, options);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-relay/src/field-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ fieldBuilderProto.connection = function connection(
after: this.arg.id({ required: false }),
first: this.arg.int({ required: false }),
last: this.arg.int({ required: false }),
},
} as unknown as {},
resolve: fieldOptions.resolve as never,
});

Expand Down

0 comments on commit 453bf7b

Please sign in to comment.