weareinreach / InReach

Use shorthand property syntax for object literals JS-0240
Anti-pattern
Minor
11 days agoa year old
132	}),
133	number: number,
134	incompatible: incompatible,
135	accessInstructions: accessInstructions,136}
137
138export type AttributeSupplementSchemas = keyof typeof AttSuppSchemas
131		message: 'Requires at least `min` or `max`.',
132	}),
133	number: number,
134	incompatible: incompatible,135	accessInstructions: accessInstructions,
136}
137
130	numMinMaxOpt: numMinMaxOpt.refine(({ min, max }) => Boolean(min || max), {
131		message: 'Requires at least `min` or `max`.',
132	}),
133	number: number,134	incompatible: incompatible,
135	accessInstructions: accessInstructions,
136}
126export const AttSuppSchemas = {
127	numMinMax: numMinMax,
128	numMin: numMin,
129	numMax: numMax,130	numMinMaxOpt: numMinMaxOpt.refine(({ min, max }) => Boolean(min || max), {
131		message: 'Requires at least `min` or `max`.',
132	}),
125
126export const AttSuppSchemas = {
127	numMinMax: numMinMax,
128	numMin: numMin,129	numMax: numMax,
130	numMinMaxOpt: numMinMaxOpt.refine(({ min, max }) => Boolean(min || max), {
131		message: 'Requires at least `min` or `max`.',