Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'GraphQLSchema::isPossibleType' that was previously deprecated #2898

Merged
merged 1 commit into from Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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