Skip to content

Commit 29b811f

Browse files
Fix index.ts files to be compatible with Typedoc (#3447)
1 parent 47bd8c8 commit 29b811f

File tree

6 files changed

+141
-140
lines changed

6 files changed

+141
-140
lines changed

src/index.ts

+62-62
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,22 @@
2222
* import { parse } from 'graphql';
2323
* import { parse } from 'graphql/language';
2424
* ```
25+
*
26+
* @packageDocumentation
2527
*/
2628

27-
/** The GraphQL.js version info. */
29+
// The GraphQL.js version info.
2830
export { version, versionInfo } from './version';
2931

30-
/** The primary entry point into fulfilling a GraphQL request. */
32+
// The primary entry point into fulfilling a GraphQL request.
3133
export type { GraphQLArgs } from './graphql';
3234
export { graphql, graphqlSync } from './graphql';
3335

34-
/** Create and operate on GraphQL type definitions and schema. */
36+
// Create and operate on GraphQL type definitions and schema.
3537
export {
3638
resolveObjMapThunk,
3739
resolveReadonlyArrayThunk,
38-
/** Definitions */
40+
// Definitions
3941
GraphQLSchema,
4042
GraphQLDirective,
4143
GraphQLScalarType,
@@ -46,27 +48,27 @@ export {
4648
GraphQLInputObjectType,
4749
GraphQLList,
4850
GraphQLNonNull,
49-
/** Standard GraphQL Scalars */
51+
// Standard GraphQL Scalars
5052
specifiedScalarTypes,
5153
GraphQLInt,
5254
GraphQLFloat,
5355
GraphQLString,
5456
GraphQLBoolean,
5557
GraphQLID,
56-
/** Int boundaries constants */
58+
// Int boundaries constants
5759
GRAPHQL_MAX_INT,
5860
GRAPHQL_MIN_INT,
59-
/** Built-in Directives defined by the Spec */
61+
// Built-in Directives defined by the Spec
6062
specifiedDirectives,
6163
GraphQLIncludeDirective,
6264
GraphQLSkipDirective,
6365
GraphQLDeprecatedDirective,
6466
GraphQLSpecifiedByDirective,
65-
/** "Enum" of Type Kinds */
67+
// "Enum" of Type Kinds
6668
TypeKind,
67-
/** Constant Deprecation Reason */
69+
// Constant Deprecation Reason
6870
DEFAULT_DEPRECATION_REASON,
69-
/** GraphQL Types for introspection. */
71+
// GraphQL Types for introspection.
7072
introspectionTypes,
7173
__Schema,
7274
__Directive,
@@ -76,11 +78,11 @@ export {
7678
__InputValue,
7779
__EnumValue,
7880
__TypeKind,
79-
/** Meta-field definitions. */
81+
// Meta-field definitions.
8082
SchemaMetaFieldDef,
8183
TypeMetaFieldDef,
8284
TypeNameMetaFieldDef,
83-
/** Predicates */
85+
// Predicates
8486
isSchema,
8587
isDirective,
8688
isType,
@@ -105,7 +107,7 @@ export {
105107
isSpecifiedScalarType,
106108
isIntrospectionType,
107109
isSpecifiedDirective,
108-
/** Assertions */
110+
// Assertions
109111
assertSchema,
110112
assertDirective,
111113
assertType,
@@ -125,13 +127,13 @@ export {
125127
assertWrappingType,
126128
assertNullableType,
127129
assertNamedType,
128-
/** Un-modifiers */
130+
// Un-modifiers
129131
getNullableType,
130132
getNamedType,
131-
/** Validate GraphQL schema. */
133+
// Validate GraphQL schema.
132134
validateSchema,
133135
assertValidSchema,
134-
/** Upholds the spec rules about naming. */
136+
// Upholds the spec rules about naming.
135137
assertName,
136138
assertEnumValueName,
137139
} from './type/index';
@@ -194,35 +196,35 @@ export type {
194196
GraphQLScalarLiteralParser,
195197
} from './type/index';
196198

197-
/** Parse and operate on GraphQL language source files. */
199+
// Parse and operate on GraphQL language source files.
198200
export {
199201
Token,
200202
Source,
201203
Location,
202204
OperationTypeNode,
203205
getLocation,
204-
/** Print source location */
206+
// Print source location.
205207
printLocation,
206208
printSourceLocation,
207-
/** Lex */
209+
// Lex
208210
Lexer,
209211
TokenKind,
210-
/** Parse */
212+
// Parse
211213
parse,
212214
parseValue,
213215
parseConstValue,
214216
parseType,
215-
/** Print */
217+
// Print
216218
print,
217-
/** Visit */
219+
// Visit
218220
visit,
219221
visitInParallel,
220222
getVisitFn,
221223
getEnterLeaveForKind,
222224
BREAK,
223225
Kind,
224226
DirectiveLocation,
225-
/** Predicates */
227+
// Predicates
226228
isDefinitionNode,
227229
isExecutableDefinitionNode,
228230
isSelectionNode,
@@ -241,14 +243,14 @@ export type {
241243
TokenKindEnum,
242244
KindEnum,
243245
DirectiveLocationEnum,
244-
/** Visitor utilities */
246+
// Visitor utilities
245247
ASTVisitor,
246248
ASTVisitFn,
247249
ASTVisitorKeyMap,
248-
/** AST nodes */
250+
// AST nodes
249251
ASTNode,
250252
ASTKindToNode,
251-
/** Each kind of AST node */
253+
// Each kind of AST node
252254
NameNode,
253255
DocumentNode,
254256
DefinitionNode,
@@ -309,7 +311,7 @@ export type {
309311
InputObjectTypeExtensionNode,
310312
} from './language/index';
311313

312-
/** Execute GraphQL queries. */
314+
// Execute GraphQL queries.
313315
export {
314316
execute,
315317
executeSync,
@@ -329,13 +331,13 @@ export type {
329331

330332
export type { SubscriptionArgs } from './subscription/index';
331333

332-
/** Validate GraphQL documents. */
334+
// Validate GraphQL documents.
333335
export {
334336
validate,
335337
ValidationContext,
336-
/** All validation rules in the GraphQL Specification. */
338+
// All validation rules in the GraphQL Specification.
337339
specifiedRules,
338-
/** Individual validation rules. */
340+
// Individual validation rules.
339341
ExecutableDefinitionsRule,
340342
FieldsOnCorrectTypeRule,
341343
FragmentsOnCompositeTypesRule,
@@ -362,7 +364,7 @@ export {
362364
ValuesOfCorrectTypeRule,
363365
VariablesAreInputTypesRule,
364366
VariablesInAllowedPositionRule,
365-
/** SDL-specific validation rules */
367+
// SDL-specific validation rules
366368
LoneSchemaDefinitionRule,
367369
UniqueOperationTypesRule,
368370
UniqueTypeNamesRule,
@@ -371,14 +373,14 @@ export {
371373
UniqueArgumentDefinitionNamesRule,
372374
UniqueDirectiveNamesRule,
373375
PossibleTypeExtensionsRule,
374-
/** Custom validation rules */
376+
// Custom validation rules
375377
NoDeprecatedCustomRule,
376378
NoSchemaIntrospectionCustomRule,
377379
} from './validation/index';
378380

379381
export type { ValidationRule } from './validation/index';
380382

381-
/** Create, format, and print GraphQL errors. */
383+
// Create, format, and print GraphQL errors.
382384
export {
383385
GraphQLError,
384386
syntaxError,
@@ -392,63 +394,61 @@ export type {
392394
GraphQLErrorExtensions,
393395
} from './error/index';
394396

395-
/** Utilities for operating on GraphQL type schema and parsed sources. */
397+
// Utilities for operating on GraphQL type schema and parsed sources.
396398
export {
397-
/**
398-
* Produce the GraphQL query recommended for a full schema introspection.
399-
* Accepts optional IntrospectionOptions.
400-
*/
399+
// Produce the GraphQL query recommended for a full schema introspection.
400+
// Accepts optional IntrospectionOptions.
401401
getIntrospectionQuery,
402-
/** Gets the target Operation from a Document. */
402+
// Gets the target Operation from a Document.
403403
getOperationAST,
404-
/** Gets the Type for the target Operation AST. */
404+
// Gets the Type for the target Operation AST.
405405
getOperationRootType,
406-
/** Convert a GraphQLSchema to an IntrospectionQuery. */
406+
// Convert a GraphQLSchema to an IntrospectionQuery.
407407
introspectionFromSchema,
408-
/** Build a GraphQLSchema from an introspection result. */
408+
// Build a GraphQLSchema from an introspection result.
409409
buildClientSchema,
410-
/** Build a GraphQLSchema from a parsed GraphQL Schema language AST. */
410+
// Build a GraphQLSchema from a parsed GraphQL Schema language AST.
411411
buildASTSchema,
412-
/** Build a GraphQLSchema from a GraphQL schema language document. */
412+
// Build a GraphQLSchema from a GraphQL schema language document.
413413
buildSchema,
414-
/** Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST. */
414+
// Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.
415415
extendSchema,
416-
/** Sort a GraphQLSchema. */
416+
// Sort a GraphQLSchema.
417417
lexicographicSortSchema,
418-
/** Print a GraphQLSchema to GraphQL Schema language. */
418+
// Print a GraphQLSchema to GraphQL Schema language.
419419
printSchema,
420-
/** Print a GraphQLType to GraphQL Schema language. */
420+
// Print a GraphQLType to GraphQL Schema language.
421421
printType,
422-
/** Prints the built-in introspection schema in the Schema Language format. */
422+
// Prints the built-in introspection schema in the Schema Language format.
423423
printIntrospectionSchema,
424-
/** Create a GraphQLType from a GraphQL language AST. */
424+
// Create a GraphQLType from a GraphQL language AST.
425425
typeFromAST,
426-
/** Create a JavaScript value from a GraphQL language AST with a Type. */
426+
// Create a JavaScript value from a GraphQL language AST with a Type.
427427
valueFromAST,
428-
/** Create a JavaScript value from a GraphQL language AST without a Type. */
428+
// Create a JavaScript value from a GraphQL language AST without a Type.
429429
valueFromASTUntyped,
430-
/** Create a GraphQL language AST from a JavaScript value. */
430+
// Create a GraphQL language AST from a JavaScript value.
431431
astFromValue,
432-
/** A helper to use within recursive-descent visitors which need to be aware of the GraphQL type system. */
432+
// A helper to use within recursive-descent visitors which need to be aware of the GraphQL type system.
433433
TypeInfo,
434434
visitWithTypeInfo,
435-
/** Coerces a JavaScript value to a GraphQL type, or produces errors. */
435+
// Coerces a JavaScript value to a GraphQL type, or produces errors.
436436
coerceInputValue,
437-
/** Concatenates multiple AST together. */
437+
// Concatenates multiple AST together.
438438
concatAST,
439-
/** Separates an AST into an AST per Operation. */
439+
// Separates an AST into an AST per Operation.
440440
separateOperations,
441-
/** Strips characters that are not significant to the validity or execution of a GraphQL document. */
441+
// Strips characters that are not significant to the validity or execution of a GraphQL document.
442442
stripIgnoredCharacters,
443-
/** Comparators for types */
443+
// Comparators for types
444444
isEqualType,
445445
isTypeSubTypeOf,
446446
doTypesOverlap,
447-
/** Asserts a string is a valid GraphQL name. */
447+
// Asserts a string is a valid GraphQL name.
448448
assertValidName,
449-
/** Determine if a string is a valid GraphQL name. */
449+
// Determine if a string is a valid GraphQL name.
450450
isValidNameError,
451-
/** Compares two GraphQLSchemas and detects breaking changes. */
451+
// Compares two GraphQLSchemas and detects breaking changes.
452452
BreakingChangeType,
453453
DangerousChangeType,
454454
findBreakingChanges,

src/language/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export { Location, Token, OperationTypeNode } from './ast';
3131
export type {
3232
ASTNode,
3333
ASTKindToNode,
34-
/** Each kind of AST node */
34+
// Each kind of AST node
3535
NameNode,
3636
DocumentNode,
3737
DefinitionNode,

0 commit comments

Comments
 (0)