Initial Save

This commit is contained in:
jackbeeby
2025-03-28 12:30:19 +11:00
parent e381994f19
commit d8773925e8
9910 changed files with 982718 additions and 0 deletions

23
node_modules/graphql/utilities/coerceValue.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import { Path } from '../jsutils/Path';
import { GraphQLError } from '../error/GraphQLError';
import { ASTNode } from '../language/ast';
import { GraphQLInputType } from '../type/definition';
interface CoercedValue {
readonly errors: ReadonlyArray<GraphQLError> | undefined;
readonly value: any;
}
/**
* Coerces a JavaScript value given a GraphQL Type.
*
* Returns either a value which is valid for the provided type or a list of
* encountered coercion errors.
*
*/
export function coerceValue(
inputValue: any,
type: GraphQLInputType,
blameNode?: ASTNode,
path?: Path,
): CoercedValue;