Skip to main content
Latest
function isTypeSubTypeOf
import { isTypeSubTypeOf } from "https://deno.land/x/graphql_deno@v15.0.0/lib/index.d.ts";

Provided a type and a super type, return true if the first type is either equal or a subset of the second super type (covariant).

Parameters

maybeSubType: GraphQLType
superType: GraphQLType

Returns

boolean