Skip to content

Commit 2151bdb

Browse files
committed
chore(graphql-test): deletes unused code
1 parent f5afddf commit 2151bdb

File tree

1 file changed

+0
-396
lines changed

1 file changed

+0
-396
lines changed

packages/graphql-test/src/generator-options.ts

Lines changed: 0 additions & 396 deletions
Original file line numberDiff line numberDiff line change
@@ -339,399 +339,3 @@ export function parseOptions(options: Options<Seed> = defaults): Config<Seed> {
339339
export function Config() {}
340340
Config.defaults = defaults
341341
Config.parseOptions = parseOptions
342-
343-
// export type ObjectConstraints =
344-
// & Omit<fc.UniqueArrayConstraintsRecommended<[k: string, v: unknown], string>, 'minLength' | 'maxLength'>
345-
// & {
346-
// minKeys?: number
347-
// maxKeys?: number
348-
// size?: fc.SizeForArbitrary
349-
// }
350-
351-
// const objectDefaults = {
352-
// minKeys: 1,
353-
// maxKeys: 3,
354-
// size: 'xsmall',
355-
// selector: ([k]) => k,
356-
// comparator: 'SameValueZero',
357-
// depthIdentifier: fc.createDepthIdentifier(),
358-
// } satisfies ObjectConstraints
359-
360-
// export const defaultConstraints = {
361-
// object: objectDefaults,
362-
// loose_object: objectDefaults,
363-
// strict_object: objectDefaults,
364-
// object_with_rest: objectDefaults,
365-
// any: {},
366-
// array: {
367-
// minLength: 0,
368-
// maxLength: 0x10
369-
// },
370-
// bigint: {
371-
// unbounded: false,
372-
// min: undefined,
373-
// max: undefined,
374-
// multipleOf: null,
375-
// },
376-
// boolean: {},
377-
// custom: {},
378-
// date: {},
379-
// enum: {},
380-
// file: {},
381-
// blob: {},
382-
// intersect: {},
383-
// lazy: {},
384-
// literal: {},
385-
// map: {},
386-
// nan: {},
387-
// never: {},
388-
// null: {},
389-
// number: {
390-
// unbounded: false,
391-
// min: -0x10000,
392-
// max: 0x10000,
393-
// multipleOf: Number.NaN,
394-
// noNaN: true,
395-
// noDefaultInfinity: true,
396-
// minExcluded: false,
397-
// maxExcluded: false,
398-
// noInteger: false,
399-
// },
400-
// optional: {},
401-
// non_optional: {},
402-
// undefinedable: {},
403-
// nullish: {},
404-
// non_nullish: {},
405-
// nullable: {},
406-
// non_nullable: {},
407-
// record: {
408-
// depthIdentifier: fc.createDepthIdentifier(),
409-
// maxKeys: 3,
410-
// minKeys: 1,
411-
// noNullPrototype: false,
412-
// size: 'xsmall',
413-
// } satisfies fc.DictionaryConstraints,
414-
// set: {},
415-
// string: {
416-
// unbounded: false,
417-
// minLength: 0,
418-
// maxLength: 0x100,
419-
// size: 'xsmall',
420-
// unit: 'grapheme-ascii',
421-
// },
422-
// symbol: {},
423-
// tuple: {
424-
// minLength: 1,
425-
// maxLength: 3,
426-
// size: 'xsmall',
427-
// depthIdentifier: fc.createDepthIdentifier(),
428-
// } satisfies fc.ArrayConstraints,
429-
// tuple_with_rest: {
430-
// minLength: 1,
431-
// maxLength: 3,
432-
// size: 'xsmall',
433-
// depthIdentifier: fc.createDepthIdentifier(),
434-
// } satisfies fc.ArrayConstraints,
435-
// strict_tuple: {
436-
// minLength: 1,
437-
// maxLength: 3,
438-
// size: 'xsmall',
439-
// depthIdentifier: fc.createDepthIdentifier(),
440-
// } satisfies fc.ArrayConstraints,
441-
// loose_tuple: {
442-
// minLength: 1,
443-
// maxLength: 3,
444-
// size: 'xsmall',
445-
// depthIdentifier: fc.createDepthIdentifier(),
446-
// } satisfies fc.ArrayConstraints,
447-
// undefined: {},
448-
// union: {
449-
// depthIdentifier: fc.createDepthIdentifier(),
450-
// minLength: 1,
451-
// maxLength: 3,
452-
// size: 'xsmall',
453-
// } satisfies fc.ArrayConstraints,
454-
// variant: {
455-
// depthIdentifier: fc.createDepthIdentifier(),
456-
// minLength: 1,
457-
// maxLength: 3,
458-
// size: 'xsmall',
459-
// } satisfies fc.ArrayConstraints,
460-
// unknown: {},
461-
// void: {},
462-
// promise: {},
463-
// ['*']: {
464-
// maxDepth: 3,
465-
// depthIdentifier: fc.createDepthIdentifier(),
466-
// depthSize: 'xsmall',
467-
// withCrossShrink: true,
468-
// } satisfies fc.OneOfConstraints,
469-
// } as const satisfies { [K in keyof Constraints]-?: Constraints[K] }
470-
471-
// export const unsupportedSchemas = ['promise'] satisfies (keyof SeedMap)[]
472-
473-
// export const defaults = {
474-
// exclude: unsupportedSchemas,
475-
// forceInvalid: false,
476-
// include: Tags,
477-
// root: '*',
478-
// sortBias: byTag,
479-
// } as const satisfies OptionsBase<any>
480-
481-
// export function parseOptions<Opts extends Options>(options?: Opts): Config<InferConfigType<Opts>>
482-
// export function parseOptions(options?: Options<any>): Config<any>
483-
// export function parseOptions(options: Options<any> = defaults as never): Config {
484-
// const {
485-
// exclude = defaults.exclude,
486-
// forceInvalid = defaults.forceInvalid,
487-
// include = defaults.include,
488-
// root = defaults.root,
489-
// sortBias = defaults.sortBias,
490-
// ['*']: {
491-
// maxDepth: starMaxDepth = defaultConstraints['*'].maxDepth,
492-
// depthSize: starDepthSize = defaultConstraints['*'].depthSize,
493-
// ...STAR
494-
// } = defaultConstraints['*'],
495-
// any = defaultConstraints.any,
496-
// array: {
497-
// maxLength: arrayMax = defaultConstraints.array.maxLength,
498-
// minLength: arrayMin = defaultConstraints.array.minLength,
499-
// ...ARRAY
500-
// } = defaultConstraints.array,
501-
// bigint: {
502-
// unbounded: bigIntUnbounded,
503-
// max: bigIntMax,
504-
// min: bigIntMin,
505-
// ...BIGINT
506-
// } = defaultConstraints.bigint,
507-
// boolean = defaultConstraints.boolean,
508-
// custom = defaultConstraints.custom,
509-
// date = defaultConstraints.date,
510-
// enum: enum_ = defaultConstraints.enum,
511-
// file = defaultConstraints.file,
512-
// intersect = defaultConstraints.intersect,
513-
// lazy = defaultConstraints.lazy,
514-
// literal = defaultConstraints.literal,
515-
// map = defaultConstraints.map,
516-
// nan = defaultConstraints.nan,
517-
// never = defaultConstraints.never,
518-
// non_optional = defaultConstraints.non_optional,
519-
// non_nullable = defaultConstraints.non_nullable,
520-
// non_nullish = defaultConstraints.non_nullable,
521-
// undefinedable = defaultConstraints.undefinedable,
522-
// nullish = defaultConstraints.nullish,
523-
// null: null_ = defaultConstraints.null,
524-
// nullable = defaultConstraints.nullable,
525-
// number: {
526-
// unbounded: numberUnbounded,
527-
// max: numberMax,
528-
// maxExcluded: numberMaxExcluded,
529-
// min: numberMin,
530-
// minExcluded: numberMinExcluded,
531-
// // ...NUMBER
532-
// } = defaultConstraints.number,
533-
// optional = defaultConstraints.optional,
534-
// record: {
535-
// maxKeys: recordMaxKeys = defaultConstraints.record.maxKeys,
536-
// minKeys: recordMinKeys = defaultConstraints.record.minKeys,
537-
// size: recordSize = defaultConstraints.record.size,
538-
// ...RECORD
539-
// } = defaultConstraints.record,
540-
// set = defaultConstraints.set,
541-
// string: {
542-
// unbounded: stringUnbounded,
543-
// minLength: stringMinLength,
544-
// maxLength: stringMaxLength,
545-
// size: stringSize = defaultConstraints.string.size,
546-
// // ...STRING
547-
// } = defaultConstraints.string,
548-
// symbol = defaultConstraints.symbol,
549-
// undefined: undefined_ = defaultConstraints.undefined,
550-
// union: {
551-
// minLength: unionMinLength = defaultConstraints.union.minLength,
552-
// maxLength: unionMaxLength = defaultConstraints.union.maxLength,
553-
// size: unionSize = defaultConstraints.union.size,
554-
// ...UNION
555-
// } = defaultConstraints.union,
556-
// variant: {
557-
// minLength: variantMinLength = defaultConstraints.variant.minLength,
558-
// maxLength: variantMaxLength = defaultConstraints.variant.maxLength,
559-
// size: variantSize = defaultConstraints.variant.size,
560-
// ...VARIANT
561-
// } = defaultConstraints.variant,
562-
// unknown = defaultConstraints.unknown,
563-
// void: void_ = defaultConstraints.void,
564-
// promise = defaultConstraints.promise,
565-
// object: {
566-
// maxKeys: objectMaxKeys = defaultConstraints.object.maxKeys,
567-
// minKeys: objectMinKeys = defaultConstraints.object.minKeys,
568-
// size: objectSize = defaultConstraints.object.size,
569-
// ...OBJECT
570-
// } = defaultConstraints.object,
571-
// blob = defaultConstraints.blob,
572-
// strict_object: {
573-
// maxKeys: strictObjectMaxKeys = defaultConstraints.strict_object.maxKeys,
574-
// minKeys: strictObjectMinKeys = defaultConstraints.strict_object.minKeys,
575-
// size: strictObjectSize = defaultConstraints.strict_object.size,
576-
// ...STRICT_OBJECT
577-
// } = defaultConstraints.strict_object,
578-
// loose_object: {
579-
// maxKeys: looseObjectMaxKeys = defaultConstraints.loose_object.maxKeys,
580-
// minKeys: looseObjectMinKeys = defaultConstraints.loose_object.minKeys,
581-
// size: looseObjectSize = defaultConstraints.loose_object.size,
582-
// ...LOOSE_OBJECT
583-
// } = defaultConstraints.loose_object,
584-
// object_with_rest: {
585-
// maxKeys: objectWithRestMaxKeys = defaultConstraints.object_with_rest.maxKeys,
586-
// minKeys: objectWithRestMinKeys = defaultConstraints.object_with_rest.minKeys,
587-
// size: objectWithRestSize = defaultConstraints.object_with_rest.size,
588-
// ...OBJECT_WITH_REST
589-
// } = defaultConstraints.object_with_rest,
590-
// tuple: {
591-
// maxLength: tupleMaxLength = defaultConstraints.tuple.maxLength,
592-
// minLength: tupleMinLength = defaultConstraints.tuple.minLength,
593-
// ...TUPLE
594-
// } = defaultConstraints.tuple,
595-
// strict_tuple: {
596-
// maxLength: strictTupleMaxLength = defaultConstraints.strict_tuple.maxLength,
597-
// minLength: strictTupleMinLength = defaultConstraints.strict_tuple.minLength,
598-
// ...STRICT_TUPLE
599-
// } = defaultConstraints.strict_tuple,
600-
// loose_tuple: {
601-
// maxLength: looseTupleMaxLength = defaultConstraints.loose_tuple.maxLength,
602-
// minLength: looseTupleMinLength = defaultConstraints.loose_tuple.minLength,
603-
// ...LOOSE_TUPLE
604-
// } = defaultConstraints.loose_tuple,
605-
// tuple_with_rest: {
606-
// maxLength: tupleWithRestMaxLength = defaultConstraints.tuple_with_rest.maxLength,
607-
// minLength: tupleWithRestMinLength = defaultConstraints.tuple_with_rest.minLength,
608-
// ...TUPLE_WITH_REST
609-
// } = defaultConstraints.tuple_with_rest,
610-
// } = options
611-
// return {
612-
// exclude,
613-
// forceInvalid,
614-
// include: include.length === 0 || include[0] === '*' ? defaults.include : include,
615-
// root,
616-
// sortBias: { ...defaults.sortBias, ...sortBias },
617-
// ['*']: {
618-
// ...STAR,
619-
// depthSize: starDepthSize,
620-
// maxDepth: starMaxDepth,
621-
// },
622-
// object: {
623-
// ...OBJECT,
624-
// minLength: objectMinKeys,
625-
// maxLength: objectMaxKeys,
626-
// size: objectSize,
627-
// },
628-
// strict_object: {
629-
// ...STRICT_OBJECT,
630-
// maxKeys: strictObjectMaxKeys,
631-
// minKeys: strictObjectMinKeys,
632-
// size: strictObjectSize,
633-
// },
634-
// loose_object: {
635-
// ...LOOSE_OBJECT,
636-
// maxKeys: looseObjectMaxKeys,
637-
// minKeys: looseObjectMinKeys,
638-
// size: looseObjectSize,
639-
// },
640-
// object_with_rest: {
641-
// ...OBJECT_WITH_REST,
642-
// maxKeys: objectWithRestMaxKeys,
643-
// minKeys: objectWithRestMinKeys,
644-
// size: objectWithRestSize,
645-
// },
646-
// any,
647-
// array: {
648-
// ...ARRAY,
649-
// min: arrayMin,
650-
// max: arrayMax,
651-
// },
652-
// bigint: {
653-
// ...BIGINT,
654-
// unbounded: bigIntUnbounded,
655-
// max: bigIntMax,
656-
// min: bigIntMin,
657-
// },
658-
// boolean,
659-
// date,
660-
// enum: enum_,
661-
// file,
662-
// intersect,
663-
// lazy,
664-
// literal,
665-
// map,
666-
// nan,
667-
// never,
668-
// non_optional,
669-
// null: null_,
670-
// nullable,
671-
// number: {
672-
// unbounded: numberUnbounded,
673-
// max: numberMax,
674-
// min: numberMin,
675-
// maxExcluded: numberMaxExcluded,
676-
// minExcluded: numberMinExcluded,
677-
// },
678-
// optional,
679-
// record: {
680-
// ...RECORD,
681-
// maxKeys: recordMaxKeys,
682-
// minKeys: recordMinKeys,
683-
// size: recordSize,
684-
// },
685-
// set,
686-
// string: {
687-
// // ...STRING,
688-
// unbounded: stringUnbounded,
689-
// minLength: stringMinLength,
690-
// maxLength: stringMaxLength,
691-
// size: stringSize,
692-
// },
693-
// symbol,
694-
// tuple: {
695-
// ...TUPLE,
696-
// minLength: tupleMinLength,
697-
// maxLength: tupleMaxLength,
698-
// },
699-
// loose_tuple: {
700-
// ...LOOSE_TUPLE,
701-
// minLength: looseTupleMinLength,
702-
// maxLength: looseTupleMaxLength,
703-
// },
704-
// strict_tuple: {
705-
// ...STRICT_TUPLE,
706-
// minLength: strictTupleMinLength,
707-
// maxLength: strictTupleMaxLength,
708-
// },
709-
// tuple_with_rest: {
710-
// ...TUPLE_WITH_REST,
711-
// minLength: tupleWithRestMinLength,
712-
// maxLength: tupleWithRestMaxLength,
713-
// },
714-
// blob,
715-
// custom,
716-
// non_nullable,
717-
// nullish,
718-
// non_nullish,
719-
// undefinedable,
720-
// variant: {
721-
// ...VARIANT,
722-
// minLength: variantMinLength,
723-
// maxLength: variantMaxLength,
724-
// size: variantSize,
725-
// },
726-
// undefined: undefined_,
727-
// union: {
728-
// ...UNION,
729-
// minLength: unionMinLength,
730-
// maxLength: unionMaxLength,
731-
// size: unionSize,
732-
// },
733-
// unknown,
734-
// void: void_,
735-
// promise,
736-
// }
737-
// }

0 commit comments

Comments
 (0)