mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
add findDeprecatedUsages.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { GraphQLSchema } from '../type/schema';
|
||||
import { DocumentNode } from '../language/ast';
|
||||
import { GraphQLError } from '../error/GraphQLError';
|
||||
|
||||
/**
|
||||
* A validation rule which reports deprecated usages.
|
||||
*
|
||||
* Returns a list of GraphQLError instances describing each deprecated use.
|
||||
*/
|
||||
export function findDeprecatedUsages(
|
||||
schema: GraphQLSchema,
|
||||
ast: DocumentNode
|
||||
): Array<GraphQLError>
|
||||
Vendored
+3
@@ -73,3 +73,6 @@ export { assertValidName } from './assertValidName';
|
||||
// Compares two GraphQLSchemas and detects breaking changes.
|
||||
export { findBreakingChanges } from './findBreakingChanges';
|
||||
export { BreakingChange } from './findBreakingChanges';
|
||||
|
||||
// Report all deprecated usage within a GraphQL document.
|
||||
export { findDeprecatedUsages } from './findDeprecatedUsages';
|
||||
|
||||
Reference in New Issue
Block a user