Skip to content

Commit

Permalink
Remove 'GraphQLSchema::isPossibleType' that was previously deprecated (
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jan 27, 2021
1 parent 4e9c733 commit 5d9b5bb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/type/__tests__/schema-test.js
Expand Up @@ -183,7 +183,6 @@ describe('Type System: Schema', () => {
expect(schema.getType('SomeSubtype')).to.equal(SomeSubtype);

expect(schema.isSubType(SomeInterface, SomeSubtype)).to.equal(true);
expect(schema.isPossibleType(SomeInterface, SomeSubtype)).to.equal(true);
});

it("includes interface's thunk subtypes in the type map", () => {
Expand Down
6 changes: 0 additions & 6 deletions src/type/schema.d.ts
Expand Up @@ -79,12 +79,6 @@ export class GraphQLSchema {
interfaceType: GraphQLInterfaceType,
): InterfaceImplementations;

// @deprecated: use isSubType instead - will be removed in v16.
isPossibleType(
abstractType: GraphQLAbstractType,
possibleType: GraphQLObjectType,
): boolean;

isSubType(
abstractType: GraphQLAbstractType,
maybeSubType: GraphQLNamedType,
Expand Down
8 changes: 0 additions & 8 deletions src/type/schema.js
Expand Up @@ -297,14 +297,6 @@ export class GraphQLSchema {
return implementations ?? { objects: [], interfaces: [] };
}

// @deprecated: use isSubType instead - will be removed in v16.
isPossibleType(
abstractType: GraphQLAbstractType,
possibleType: GraphQLObjectType,
): boolean {
return this.isSubType(abstractType, possibleType);
}

isSubType(
abstractType: GraphQLAbstractType,
maybeSubType: GraphQLObjectType | GraphQLInterfaceType,
Expand Down

0 comments on commit 5d9b5bb

Please sign in to comment.