summaryrefslogtreecommitdiff
path: root/includes/external/school/node_modules/graphql/utilities/assertValidName.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/school/node_modules/graphql/utilities/assertValidName.d.ts')
-rw-r--r--includes/external/school/node_modules/graphql/utilities/assertValidName.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/graphql/utilities/assertValidName.d.ts b/includes/external/school/node_modules/graphql/utilities/assertValidName.d.ts
new file mode 100644
index 0000000..5a1011e
--- /dev/null
+++ b/includes/external/school/node_modules/graphql/utilities/assertValidName.d.ts
@@ -0,0 +1,11 @@
+import { GraphQLError } from '../error/GraphQLError';
+
+/**
+ * Upholds the spec rules about naming.
+ */
+export function assertValidName(name: string): string;
+
+/**
+ * Returns an Error if a name is invalid.
+ */
+export function isValidNameError(name: string): GraphQLError | undefined;