diff --git a/README.md b/README.md index 66f1a8af5c..d9a865269f 100644 --- a/README.md +++ b/README.md @@ -138,3 +138,28 @@ Changes are tracked as [GitHub releases](https://github.com/graphql/graphql-js/r ### License GraphQL.js is [MIT-licensed](https://github.com/graphql/graphql-js/blob/master/LICENSE). + +### Credits + +The `*.d.ts` files in this project are based on [DefinetlyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/54712a7e28090c5b1253b746d1878003c954f3ff/types/graphql) definitions written by: + +- TonyYang https://github.com/TonyPythoneer +- Caleb Meredith https://github.com/calebmer +- Dominic Watson https://github.com/intellix +- Firede https://github.com/firede +- Kepennar https://github.com/kepennar +- Mikhail Novikov https://github.com/freiksenet +- Ivan Goncharov https://github.com/IvanGoncharov +- Hagai Cohen https://github.com/DxCx +- Ricardo Portugal https://github.com/rportugal +- Tim Griesser https://github.com/tgriesser +- Dylan Stewart https://github.com/dyst5422 +- Alessio Dionisi https://github.com/adnsio +- Divyendu Singh https://github.com/divyenduz +- Brad Zacher https://github.com/bradzacher +- Curtis Layne https://github.com/clayne11 +- Jonathan Cardoso https://github.com/JCMais +- Pavel Lang https://github.com/langpavel +- Mark Caudill https://github.com/mc0 +- Martijn Walraven https://github.com/martijnwalraven +- Jed Mao https://github.com/jedmao diff --git a/package.json b/package.json index 6fa9b5b0f9..81e55bda58 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "prettier": "prettier --ignore-path .gitignore --write --list-different \"**/*.{js,ts,md,json,yml}\"", "prettier:check": "prettier --ignore-path .gitignore --check \"**/*.{js,ts,md,json,yml}\"", "check": "flow check", - "check:ts": "dtslint tstypes", + "check:ts": "dtslint src", "check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml", "build": "node resources/build.js", "changelog": "node resources/gen-changelog.js", diff --git a/resources/build.js b/resources/build.js index 6b71947e14..c1cc17a8de 100644 --- a/resources/build.js +++ b/resources/build.js @@ -26,13 +26,8 @@ if (require.main === module) { for (const filepath of srcFiles) { if (filepath.endsWith('.js')) { buildJSFile(filepath); - } - } - - const tsFiles = readdirRecursive('./tstypes', { ignoreDir: /^__.*__$/ }); - for (const filepath of tsFiles) { - if (filepath.endsWith('.d.ts')) { - const srcPath = path.join('./tstypes', filepath); + } else if (filepath.endsWith('.d.ts')) { + const srcPath = path.join('./src', filepath); const destPath = path.join('./dist', filepath); copyFile(srcPath, destPath); diff --git a/tstypes/error/GraphQLError.d.ts b/src/error/GraphQLError.d.ts similarity index 100% rename from tstypes/error/GraphQLError.d.ts rename to src/error/GraphQLError.d.ts diff --git a/tstypes/error/formatError.d.ts b/src/error/formatError.d.ts similarity index 100% rename from tstypes/error/formatError.d.ts rename to src/error/formatError.d.ts diff --git a/tstypes/error/index.d.ts b/src/error/index.d.ts similarity index 100% rename from tstypes/error/index.d.ts rename to src/error/index.d.ts diff --git a/tstypes/error/locatedError.d.ts b/src/error/locatedError.d.ts similarity index 100% rename from tstypes/error/locatedError.d.ts rename to src/error/locatedError.d.ts diff --git a/tstypes/error/syntaxError.d.ts b/src/error/syntaxError.d.ts similarity index 100% rename from tstypes/error/syntaxError.d.ts rename to src/error/syntaxError.d.ts diff --git a/tstypes/execution/execute.d.ts b/src/execution/execute.d.ts similarity index 100% rename from tstypes/execution/execute.d.ts rename to src/execution/execute.d.ts diff --git a/tstypes/execution/index.d.ts b/src/execution/index.d.ts similarity index 100% rename from tstypes/execution/index.d.ts rename to src/execution/index.d.ts diff --git a/tstypes/execution/values.d.ts b/src/execution/values.d.ts similarity index 100% rename from tstypes/execution/values.d.ts rename to src/execution/values.d.ts diff --git a/tstypes/graphql.d.ts b/src/graphql.d.ts similarity index 100% rename from tstypes/graphql.d.ts rename to src/graphql.d.ts diff --git a/tstypes/index.d.ts b/src/index.d.ts similarity index 100% rename from tstypes/index.d.ts rename to src/index.d.ts diff --git a/tstypes/jsutils/Path.d.ts b/src/jsutils/Path.d.ts similarity index 100% rename from tstypes/jsutils/Path.d.ts rename to src/jsutils/Path.d.ts diff --git a/tstypes/jsutils/PromiseOrValue.d.ts b/src/jsutils/PromiseOrValue.d.ts similarity index 100% rename from tstypes/jsutils/PromiseOrValue.d.ts rename to src/jsutils/PromiseOrValue.d.ts diff --git a/tstypes/language/ast.d.ts b/src/language/ast.d.ts similarity index 100% rename from tstypes/language/ast.d.ts rename to src/language/ast.d.ts diff --git a/tstypes/language/blockString.d.ts b/src/language/blockString.d.ts similarity index 100% rename from tstypes/language/blockString.d.ts rename to src/language/blockString.d.ts diff --git a/tstypes/language/directiveLocation.d.ts b/src/language/directiveLocation.d.ts similarity index 100% rename from tstypes/language/directiveLocation.d.ts rename to src/language/directiveLocation.d.ts diff --git a/tstypes/language/index.d.ts b/src/language/index.d.ts similarity index 100% rename from tstypes/language/index.d.ts rename to src/language/index.d.ts diff --git a/tstypes/language/kinds.d.ts b/src/language/kinds.d.ts similarity index 100% rename from tstypes/language/kinds.d.ts rename to src/language/kinds.d.ts diff --git a/tstypes/language/lexer.d.ts b/src/language/lexer.d.ts similarity index 100% rename from tstypes/language/lexer.d.ts rename to src/language/lexer.d.ts diff --git a/tstypes/language/location.d.ts b/src/language/location.d.ts similarity index 100% rename from tstypes/language/location.d.ts rename to src/language/location.d.ts diff --git a/tstypes/language/parser.d.ts b/src/language/parser.d.ts similarity index 100% rename from tstypes/language/parser.d.ts rename to src/language/parser.d.ts diff --git a/tstypes/language/predicates.d.ts b/src/language/predicates.d.ts similarity index 100% rename from tstypes/language/predicates.d.ts rename to src/language/predicates.d.ts diff --git a/tstypes/language/printLocation.d.ts b/src/language/printLocation.d.ts similarity index 100% rename from tstypes/language/printLocation.d.ts rename to src/language/printLocation.d.ts diff --git a/tstypes/language/printer.d.ts b/src/language/printer.d.ts similarity index 100% rename from tstypes/language/printer.d.ts rename to src/language/printer.d.ts diff --git a/tstypes/language/source.d.ts b/src/language/source.d.ts similarity index 100% rename from tstypes/language/source.d.ts rename to src/language/source.d.ts diff --git a/tstypes/language/tokenKind.d.ts b/src/language/tokenKind.d.ts similarity index 100% rename from tstypes/language/tokenKind.d.ts rename to src/language/tokenKind.d.ts diff --git a/tstypes/language/visitor.d.ts b/src/language/visitor.d.ts similarity index 100% rename from tstypes/language/visitor.d.ts rename to src/language/visitor.d.ts diff --git a/tstypes/subscription/asyncIteratorReject.d.ts b/src/subscription/asyncIteratorReject.d.ts similarity index 100% rename from tstypes/subscription/asyncIteratorReject.d.ts rename to src/subscription/asyncIteratorReject.d.ts diff --git a/tstypes/subscription/index.d.ts b/src/subscription/index.d.ts similarity index 100% rename from tstypes/subscription/index.d.ts rename to src/subscription/index.d.ts diff --git a/tstypes/subscription/mapAsyncIterator.d.ts b/src/subscription/mapAsyncIterator.d.ts similarity index 100% rename from tstypes/subscription/mapAsyncIterator.d.ts rename to src/subscription/mapAsyncIterator.d.ts diff --git a/tstypes/subscription/subscribe.d.ts b/src/subscription/subscribe.d.ts similarity index 100% rename from tstypes/subscription/subscribe.d.ts rename to src/subscription/subscribe.d.ts diff --git a/tstypes/tsconfig.json b/src/tsconfig.json similarity index 100% rename from tstypes/tsconfig.json rename to src/tsconfig.json diff --git a/tstypes/tslint.json b/src/tslint.json similarity index 100% rename from tstypes/tslint.json rename to src/tslint.json diff --git a/tstypes/tsutils/Maybe.d.ts b/src/tsutils/Maybe.d.ts similarity index 100% rename from tstypes/tsutils/Maybe.d.ts rename to src/tsutils/Maybe.d.ts diff --git a/tstypes/type/definition.d.ts b/src/type/definition.d.ts similarity index 100% rename from tstypes/type/definition.d.ts rename to src/type/definition.d.ts diff --git a/tstypes/type/directives.d.ts b/src/type/directives.d.ts similarity index 100% rename from tstypes/type/directives.d.ts rename to src/type/directives.d.ts diff --git a/tstypes/type/index.d.ts b/src/type/index.d.ts similarity index 100% rename from tstypes/type/index.d.ts rename to src/type/index.d.ts diff --git a/tstypes/type/introspection.d.ts b/src/type/introspection.d.ts similarity index 100% rename from tstypes/type/introspection.d.ts rename to src/type/introspection.d.ts diff --git a/tstypes/type/scalars.d.ts b/src/type/scalars.d.ts similarity index 100% rename from tstypes/type/scalars.d.ts rename to src/type/scalars.d.ts diff --git a/tstypes/type/schema.d.ts b/src/type/schema.d.ts similarity index 100% rename from tstypes/type/schema.d.ts rename to src/type/schema.d.ts diff --git a/tstypes/type/validate.d.ts b/src/type/validate.d.ts similarity index 100% rename from tstypes/type/validate.d.ts rename to src/type/validate.d.ts diff --git a/tstypes/utilities/TypeInfo.d.ts b/src/utilities/TypeInfo.d.ts similarity index 100% rename from tstypes/utilities/TypeInfo.d.ts rename to src/utilities/TypeInfo.d.ts diff --git a/tstypes/utilities/assertValidName.d.ts b/src/utilities/assertValidName.d.ts similarity index 100% rename from tstypes/utilities/assertValidName.d.ts rename to src/utilities/assertValidName.d.ts diff --git a/tstypes/utilities/astFromValue.d.ts b/src/utilities/astFromValue.d.ts similarity index 100% rename from tstypes/utilities/astFromValue.d.ts rename to src/utilities/astFromValue.d.ts diff --git a/tstypes/utilities/buildASTSchema.d.ts b/src/utilities/buildASTSchema.d.ts similarity index 100% rename from tstypes/utilities/buildASTSchema.d.ts rename to src/utilities/buildASTSchema.d.ts diff --git a/tstypes/utilities/buildClientSchema.d.ts b/src/utilities/buildClientSchema.d.ts similarity index 100% rename from tstypes/utilities/buildClientSchema.d.ts rename to src/utilities/buildClientSchema.d.ts diff --git a/tstypes/utilities/coerceInputValue.d.ts b/src/utilities/coerceInputValue.d.ts similarity index 100% rename from tstypes/utilities/coerceInputValue.d.ts rename to src/utilities/coerceInputValue.d.ts diff --git a/tstypes/utilities/concatAST.d.ts b/src/utilities/concatAST.d.ts similarity index 100% rename from tstypes/utilities/concatAST.d.ts rename to src/utilities/concatAST.d.ts diff --git a/tstypes/utilities/extendSchema.d.ts b/src/utilities/extendSchema.d.ts similarity index 100% rename from tstypes/utilities/extendSchema.d.ts rename to src/utilities/extendSchema.d.ts diff --git a/tstypes/utilities/findBreakingChanges.d.ts b/src/utilities/findBreakingChanges.d.ts similarity index 100% rename from tstypes/utilities/findBreakingChanges.d.ts rename to src/utilities/findBreakingChanges.d.ts diff --git a/tstypes/utilities/findDeprecatedUsages.d.ts b/src/utilities/findDeprecatedUsages.d.ts similarity index 100% rename from tstypes/utilities/findDeprecatedUsages.d.ts rename to src/utilities/findDeprecatedUsages.d.ts diff --git a/tstypes/utilities/getIntrospectionQuery.d.ts b/src/utilities/getIntrospectionQuery.d.ts similarity index 100% rename from tstypes/utilities/getIntrospectionQuery.d.ts rename to src/utilities/getIntrospectionQuery.d.ts diff --git a/tstypes/utilities/getOperationAST.d.ts b/src/utilities/getOperationAST.d.ts similarity index 100% rename from tstypes/utilities/getOperationAST.d.ts rename to src/utilities/getOperationAST.d.ts diff --git a/tstypes/utilities/getOperationRootType.d.ts b/src/utilities/getOperationRootType.d.ts similarity index 100% rename from tstypes/utilities/getOperationRootType.d.ts rename to src/utilities/getOperationRootType.d.ts diff --git a/tstypes/utilities/index.d.ts b/src/utilities/index.d.ts similarity index 100% rename from tstypes/utilities/index.d.ts rename to src/utilities/index.d.ts diff --git a/tstypes/utilities/introspectionFromSchema.d.ts b/src/utilities/introspectionFromSchema.d.ts similarity index 100% rename from tstypes/utilities/introspectionFromSchema.d.ts rename to src/utilities/introspectionFromSchema.d.ts diff --git a/tstypes/utilities/lexicographicSortSchema.d.ts b/src/utilities/lexicographicSortSchema.d.ts similarity index 100% rename from tstypes/utilities/lexicographicSortSchema.d.ts rename to src/utilities/lexicographicSortSchema.d.ts diff --git a/tstypes/utilities/schemaPrinter.d.ts b/src/utilities/schemaPrinter.d.ts similarity index 100% rename from tstypes/utilities/schemaPrinter.d.ts rename to src/utilities/schemaPrinter.d.ts diff --git a/tstypes/utilities/separateOperations.d.ts b/src/utilities/separateOperations.d.ts similarity index 100% rename from tstypes/utilities/separateOperations.d.ts rename to src/utilities/separateOperations.d.ts diff --git a/tstypes/utilities/stripIgnoredCharacters.d.ts b/src/utilities/stripIgnoredCharacters.d.ts similarity index 100% rename from tstypes/utilities/stripIgnoredCharacters.d.ts rename to src/utilities/stripIgnoredCharacters.d.ts diff --git a/tstypes/utilities/typeComparators.d.ts b/src/utilities/typeComparators.d.ts similarity index 100% rename from tstypes/utilities/typeComparators.d.ts rename to src/utilities/typeComparators.d.ts diff --git a/tstypes/utilities/typeFromAST.d.ts b/src/utilities/typeFromAST.d.ts similarity index 100% rename from tstypes/utilities/typeFromAST.d.ts rename to src/utilities/typeFromAST.d.ts diff --git a/tstypes/utilities/valueFromAST.d.ts b/src/utilities/valueFromAST.d.ts similarity index 100% rename from tstypes/utilities/valueFromAST.d.ts rename to src/utilities/valueFromAST.d.ts diff --git a/tstypes/utilities/valueFromASTUntyped.d.ts b/src/utilities/valueFromASTUntyped.d.ts similarity index 100% rename from tstypes/utilities/valueFromASTUntyped.d.ts rename to src/utilities/valueFromASTUntyped.d.ts diff --git a/tstypes/validation/ValidationContext.d.ts b/src/validation/ValidationContext.d.ts similarity index 100% rename from tstypes/validation/ValidationContext.d.ts rename to src/validation/ValidationContext.d.ts diff --git a/tstypes/validation/index.d.ts b/src/validation/index.d.ts similarity index 100% rename from tstypes/validation/index.d.ts rename to src/validation/index.d.ts diff --git a/tstypes/validation/rules/ExecutableDefinitions.d.ts b/src/validation/rules/ExecutableDefinitions.d.ts similarity index 100% rename from tstypes/validation/rules/ExecutableDefinitions.d.ts rename to src/validation/rules/ExecutableDefinitions.d.ts diff --git a/tstypes/validation/rules/FieldsOnCorrectType.d.ts b/src/validation/rules/FieldsOnCorrectType.d.ts similarity index 100% rename from tstypes/validation/rules/FieldsOnCorrectType.d.ts rename to src/validation/rules/FieldsOnCorrectType.d.ts diff --git a/tstypes/validation/rules/FragmentsOnCompositeTypes.d.ts b/src/validation/rules/FragmentsOnCompositeTypes.d.ts similarity index 100% rename from tstypes/validation/rules/FragmentsOnCompositeTypes.d.ts rename to src/validation/rules/FragmentsOnCompositeTypes.d.ts diff --git a/tstypes/validation/rules/KnownArgumentNames.d.ts b/src/validation/rules/KnownArgumentNames.d.ts similarity index 100% rename from tstypes/validation/rules/KnownArgumentNames.d.ts rename to src/validation/rules/KnownArgumentNames.d.ts diff --git a/tstypes/validation/rules/KnownDirectives.d.ts b/src/validation/rules/KnownDirectives.d.ts similarity index 100% rename from tstypes/validation/rules/KnownDirectives.d.ts rename to src/validation/rules/KnownDirectives.d.ts diff --git a/tstypes/validation/rules/KnownFragmentNames.d.ts b/src/validation/rules/KnownFragmentNames.d.ts similarity index 100% rename from tstypes/validation/rules/KnownFragmentNames.d.ts rename to src/validation/rules/KnownFragmentNames.d.ts diff --git a/tstypes/validation/rules/KnownTypeNames.d.ts b/src/validation/rules/KnownTypeNames.d.ts similarity index 100% rename from tstypes/validation/rules/KnownTypeNames.d.ts rename to src/validation/rules/KnownTypeNames.d.ts diff --git a/tstypes/validation/rules/LoneAnonymousOperation.d.ts b/src/validation/rules/LoneAnonymousOperation.d.ts similarity index 100% rename from tstypes/validation/rules/LoneAnonymousOperation.d.ts rename to src/validation/rules/LoneAnonymousOperation.d.ts diff --git a/tstypes/validation/rules/LoneSchemaDefinition.d.ts b/src/validation/rules/LoneSchemaDefinition.d.ts similarity index 100% rename from tstypes/validation/rules/LoneSchemaDefinition.d.ts rename to src/validation/rules/LoneSchemaDefinition.d.ts diff --git a/tstypes/validation/rules/NoFragmentCycles.d.ts b/src/validation/rules/NoFragmentCycles.d.ts similarity index 100% rename from tstypes/validation/rules/NoFragmentCycles.d.ts rename to src/validation/rules/NoFragmentCycles.d.ts diff --git a/tstypes/validation/rules/NoUndefinedVariables.d.ts b/src/validation/rules/NoUndefinedVariables.d.ts similarity index 100% rename from tstypes/validation/rules/NoUndefinedVariables.d.ts rename to src/validation/rules/NoUndefinedVariables.d.ts diff --git a/tstypes/validation/rules/NoUnusedFragments.d.ts b/src/validation/rules/NoUnusedFragments.d.ts similarity index 100% rename from tstypes/validation/rules/NoUnusedFragments.d.ts rename to src/validation/rules/NoUnusedFragments.d.ts diff --git a/tstypes/validation/rules/NoUnusedVariables.d.ts b/src/validation/rules/NoUnusedVariables.d.ts similarity index 100% rename from tstypes/validation/rules/NoUnusedVariables.d.ts rename to src/validation/rules/NoUnusedVariables.d.ts diff --git a/tstypes/validation/rules/OverlappingFieldsCanBeMerged.d.ts b/src/validation/rules/OverlappingFieldsCanBeMerged.d.ts similarity index 100% rename from tstypes/validation/rules/OverlappingFieldsCanBeMerged.d.ts rename to src/validation/rules/OverlappingFieldsCanBeMerged.d.ts diff --git a/tstypes/validation/rules/PossibleFragmentSpreads.d.ts b/src/validation/rules/PossibleFragmentSpreads.d.ts similarity index 100% rename from tstypes/validation/rules/PossibleFragmentSpreads.d.ts rename to src/validation/rules/PossibleFragmentSpreads.d.ts diff --git a/tstypes/validation/rules/PossibleTypeExtensions.d.ts b/src/validation/rules/PossibleTypeExtensions.d.ts similarity index 100% rename from tstypes/validation/rules/PossibleTypeExtensions.d.ts rename to src/validation/rules/PossibleTypeExtensions.d.ts diff --git a/tstypes/validation/rules/ProvidedRequiredArguments.d.ts b/src/validation/rules/ProvidedRequiredArguments.d.ts similarity index 100% rename from tstypes/validation/rules/ProvidedRequiredArguments.d.ts rename to src/validation/rules/ProvidedRequiredArguments.d.ts diff --git a/tstypes/validation/rules/ScalarLeafs.d.ts b/src/validation/rules/ScalarLeafs.d.ts similarity index 100% rename from tstypes/validation/rules/ScalarLeafs.d.ts rename to src/validation/rules/ScalarLeafs.d.ts diff --git a/tstypes/validation/rules/SingleFieldSubscriptions.d.ts b/src/validation/rules/SingleFieldSubscriptions.d.ts similarity index 100% rename from tstypes/validation/rules/SingleFieldSubscriptions.d.ts rename to src/validation/rules/SingleFieldSubscriptions.d.ts diff --git a/tstypes/validation/rules/UniqueArgumentNames.d.ts b/src/validation/rules/UniqueArgumentNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueArgumentNames.d.ts rename to src/validation/rules/UniqueArgumentNames.d.ts diff --git a/tstypes/validation/rules/UniqueDirectiveNames.d.ts b/src/validation/rules/UniqueDirectiveNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueDirectiveNames.d.ts rename to src/validation/rules/UniqueDirectiveNames.d.ts diff --git a/tstypes/validation/rules/UniqueDirectivesPerLocation.d.ts b/src/validation/rules/UniqueDirectivesPerLocation.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueDirectivesPerLocation.d.ts rename to src/validation/rules/UniqueDirectivesPerLocation.d.ts diff --git a/tstypes/validation/rules/UniqueEnumValueNames.d.ts b/src/validation/rules/UniqueEnumValueNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueEnumValueNames.d.ts rename to src/validation/rules/UniqueEnumValueNames.d.ts diff --git a/tstypes/validation/rules/UniqueFieldDefinitionNames.d.ts b/src/validation/rules/UniqueFieldDefinitionNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueFieldDefinitionNames.d.ts rename to src/validation/rules/UniqueFieldDefinitionNames.d.ts diff --git a/tstypes/validation/rules/UniqueFragmentNames.d.ts b/src/validation/rules/UniqueFragmentNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueFragmentNames.d.ts rename to src/validation/rules/UniqueFragmentNames.d.ts diff --git a/tstypes/validation/rules/UniqueInputFieldNames.d.ts b/src/validation/rules/UniqueInputFieldNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueInputFieldNames.d.ts rename to src/validation/rules/UniqueInputFieldNames.d.ts diff --git a/tstypes/validation/rules/UniqueOperationNames.d.ts b/src/validation/rules/UniqueOperationNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueOperationNames.d.ts rename to src/validation/rules/UniqueOperationNames.d.ts diff --git a/tstypes/validation/rules/UniqueOperationTypes.d.ts b/src/validation/rules/UniqueOperationTypes.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueOperationTypes.d.ts rename to src/validation/rules/UniqueOperationTypes.d.ts diff --git a/tstypes/validation/rules/UniqueTypeNames.d.ts b/src/validation/rules/UniqueTypeNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueTypeNames.d.ts rename to src/validation/rules/UniqueTypeNames.d.ts diff --git a/tstypes/validation/rules/UniqueVariableNames.d.ts b/src/validation/rules/UniqueVariableNames.d.ts similarity index 100% rename from tstypes/validation/rules/UniqueVariableNames.d.ts rename to src/validation/rules/UniqueVariableNames.d.ts diff --git a/tstypes/validation/rules/ValuesOfCorrectType.d.ts b/src/validation/rules/ValuesOfCorrectType.d.ts similarity index 100% rename from tstypes/validation/rules/ValuesOfCorrectType.d.ts rename to src/validation/rules/ValuesOfCorrectType.d.ts diff --git a/tstypes/validation/rules/VariablesAreInputTypes.d.ts b/src/validation/rules/VariablesAreInputTypes.d.ts similarity index 100% rename from tstypes/validation/rules/VariablesAreInputTypes.d.ts rename to src/validation/rules/VariablesAreInputTypes.d.ts diff --git a/tstypes/validation/rules/VariablesInAllowedPosition.d.ts b/src/validation/rules/VariablesInAllowedPosition.d.ts similarity index 100% rename from tstypes/validation/rules/VariablesInAllowedPosition.d.ts rename to src/validation/rules/VariablesInAllowedPosition.d.ts diff --git a/tstypes/validation/specifiedRules.d.ts b/src/validation/specifiedRules.d.ts similarity index 100% rename from tstypes/validation/specifiedRules.d.ts rename to src/validation/specifiedRules.d.ts diff --git a/tstypes/validation/validate.d.ts b/src/validation/validate.d.ts similarity index 100% rename from tstypes/validation/validate.d.ts rename to src/validation/validate.d.ts diff --git a/tstypes/version.d.ts b/src/version.d.ts similarity index 100% rename from tstypes/version.d.ts rename to src/version.d.ts diff --git a/tstypes/README.md b/tstypes/README.md deleted file mode 100644 index 33e0f20517..0000000000 --- a/tstypes/README.md +++ /dev/null @@ -1,30 +0,0 @@ -## TypeScript definition files - -This module includes a [TypeScript](https://www.typescriptlang.org/) -declaration file to enable auto complete in compatible editors and type -information for TypeScript projects. - -### Credits - -The `*.d.ts` files in this folder are based on [DefinetlyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/54712a7e28090c5b1253b746d1878003c954f3ff/types/graphql) definitions written by: - -- TonyYang https://github.com/TonyPythoneer -- Caleb Meredith https://github.com/calebmer -- Dominic Watson https://github.com/intellix -- Firede https://github.com/firede -- Kepennar https://github.com/kepennar -- Mikhail Novikov https://github.com/freiksenet -- Ivan Goncharov https://github.com/IvanGoncharov -- Hagai Cohen https://github.com/DxCx -- Ricardo Portugal https://github.com/rportugal -- Tim Griesser https://github.com/tgriesser -- Dylan Stewart https://github.com/dyst5422 -- Alessio Dionisi https://github.com/adnsio -- Divyendu Singh https://github.com/divyenduz -- Brad Zacher https://github.com/bradzacher -- Curtis Layne https://github.com/clayne11 -- Jonathan Cardoso https://github.com/JCMais -- Pavel Lang https://github.com/langpavel -- Mark Caudill https://github.com/mc0 -- Martijn Walraven https://github.com/martijnwalraven -- Jed Mao https://github.com/jedmao