mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-25 13:31:00 +00:00
28 lines
802 B
JavaScript
28 lines
802 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.findDeprecatedUsages = findDeprecatedUsages;
|
|
|
|
var _validate = require("../validation/validate.js");
|
|
|
|
var _NoDeprecatedCustomRule = require("../validation/rules/custom/NoDeprecatedCustomRule.js");
|
|
|
|
/**
|
|
* A validation rule which reports deprecated usages.
|
|
*
|
|
* Returns a list of GraphQLError instances describing each deprecated use.
|
|
*
|
|
* @deprecated Please use `validate` with `NoDeprecatedCustomRule` instead:
|
|
*
|
|
* ```
|
|
* import { validate, NoDeprecatedCustomRule } from 'graphql'
|
|
*
|
|
* const errors = validate(schema, document, [NoDeprecatedCustomRule])
|
|
* ```
|
|
*/
|
|
function findDeprecatedUsages(schema, ast) {
|
|
return (0, _validate.validate)(schema, ast, [_NoDeprecatedCustomRule.NoDeprecatedCustomRule]);
|
|
}
|