@@ -53,7 +53,7 @@ export interface ScalarArgConfig<T> extends CommonArgConfig {
53
53
/**
54
54
* The default value for this argument when ***none*** is given by the client.
55
55
*
56
- * Note that _null_ is still considered something meaning if the client gives an explicit null that will
56
+ * Note that *null* is still considered something meaning if the client gives an explicit null that will
57
57
* prevent the default from activating. This is why the type of an arg with a default value in the resolver
58
58
* includes "undefined | null".
59
59
*
@@ -87,10 +87,8 @@ export interface NexusArgConfig<T extends string> extends NexusAsArgConfig<T> {
87
87
* Types may be expressed in one of three ways:
88
88
*
89
89
* 1. As string literals matching the name of a builtin scalar.
90
- *
91
90
* 2. As string literals matching the name of another type. Thanks to [Nexus' reflection
92
- * system](https://nxs.li/guides/reflection) this is typesafe and autocompletable.
93
- *
91
+ * system](https://nxs.li/guides/reflection) this is typesafe and autocompletable.
94
92
* 3. As references to other enums or input object type definitions.
95
93
*
96
94
* Type modifier helpers like list() may also be used and in turn accept one of the three methods listed above.
@@ -159,7 +157,7 @@ withNexusSymbol(NexusArgDef, NexusTypes.Arg)
159
157
* })
160
158
*
161
159
* @param config Configuration for the argument like its type and description. See jsdoc on each config field
162
- * for details.
160
+ * for details.
163
161
*/
164
162
export function arg < T extends string > ( config : NexusArgConfig < T > ) {
165
163
if ( ! config . type ) {
@@ -193,8 +191,7 @@ export function arg<T extends string>(config: NexusArgConfig<T>) {
193
191
* },
194
192
* })
195
193
*
196
- * @param config Configuration for the argument like its description. See jsdoc on each config field
197
- * for details.
194
+ * @param config Configuration for the argument like its description. See jsdoc on each config field for details.
198
195
*/
199
196
export function stringArg ( config ?: ScalarArgConfig < string > ) {
200
197
return arg ( { type : 'String' , ...config } )
@@ -224,8 +221,7 @@ export function stringArg(config?: ScalarArgConfig<string>) {
224
221
* },
225
222
* })
226
223
*
227
- * @param config Configuration for the argument like its description. See jsdoc on each config field
228
- * for details.
224
+ * @param config Configuration for the argument like its description. See jsdoc on each config field for details.
229
225
*/
230
226
export function intArg ( config ?: ScalarArgConfig < number > ) {
231
227
return arg ( { type : 'Int' , ...config } )
@@ -255,8 +251,7 @@ export function intArg(config?: ScalarArgConfig<number>) {
255
251
* },
256
252
* })
257
253
*
258
- * @param config Configuration for the argument like its description. See jsdoc on each config field
259
- * for details.
254
+ * @param config Configuration for the argument like its description. See jsdoc on each config field for details.
260
255
*/
261
256
export function floatArg ( config ?: ScalarArgConfig < number > ) {
262
257
return arg ( { type : 'Float' , ...config } )
@@ -286,8 +281,7 @@ export function floatArg(config?: ScalarArgConfig<number>) {
286
281
* },
287
282
* })
288
283
*
289
- * @param config Configuration for the argument like its description. See jsdoc on each config field
290
- * for details.
284
+ * @param config Configuration for the argument like its description. See jsdoc on each config field for details.
291
285
*/
292
286
export function idArg ( config ?: ScalarArgConfig < string > ) {
293
287
return arg ( { type : 'ID' , ...config } )
@@ -317,8 +311,7 @@ export function idArg(config?: ScalarArgConfig<string>) {
317
311
* },
318
312
* })
319
313
*
320
- * @param config Configuration for the argument like its description. See jsdoc on each config field
321
- * for details.
314
+ * @param config Configuration for the argument like its description. See jsdoc on each config field for details.
322
315
*/
323
316
export function booleanArg ( config ?: ScalarArgConfig < boolean > ) {
324
317
return arg ( { type : 'Boolean' , ...config } )
0 commit comments