UNPKG

gql-typeguards

Version:
3 lines (2 loc) 655 B
"use strict";function n(n,t){return(null==n?void 0:n.__typename)===t}function t(t,e){var r=null==e?void 0:e.filter((function(e){return n(t,e)}));return!!r&&r.length>0}function e(t,e){var r=null==e?void 0:e.filter((function(e){return n(t,e)}));return!!r&&0===r.length}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isEither=t,exports.isEitherTypesInTuple=function(n){return function(e){return t(e,n)}},exports.isNot=e,exports.isNotTypesInTuple=function(n){return function(t){return e(t,n)}},exports.isType=n,exports.isTypeInTuple=function(t){return function(e){return n(e,t)}}; //# sourceMappingURL=gql-typeguards.cjs.production.min.js.map