Skip to content

Commit

Permalink
馃毃 lint: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iammola committed Jul 1, 2022
1 parent 8aa7f53 commit ca6f97b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/types/schema.test.ts
Expand Up @@ -403,7 +403,7 @@ export function autoTypedSchema() {
string2: 'String',
string3: 'string',
string4: Schema.Types.String,
string5: { type: String, default: "ABCD" },
string5: { type: String, default: 'ABCD' },
number1: Number,
number2: 'Number',
number3: 'number',
Expand All @@ -413,7 +413,7 @@ export function autoTypedSchema() {
date2: 'Date',
date3: 'date',
date4: Schema.Types.Date,
date5: { type: Date , default: new Date() },
date5: { type: Date, default: new Date() },
buffer1: Buffer,
buffer2: 'Buffer',
buffer3: 'buffer',
Expand All @@ -422,7 +422,7 @@ export function autoTypedSchema() {
boolean2: 'Boolean',
boolean3: 'boolean',
boolean4: Schema.Types.Boolean,
boolean5: { type: Boolean , default: true },
boolean5: { type: Boolean, default: true },
mixed1: Object,
mixed2: {},
mixed3: Schema.Types.Mixed,
Expand Down
10 changes: 5 additions & 5 deletions types/inferschematype.d.ts
Expand Up @@ -75,11 +75,11 @@ type IsPathRequired<P, TypeKey extends TypeKeyBaseType> =
? P extends { default: undefined }
? false
: true
: P extends (Record<TypeKey, NumberSchemaDefinition | StringSchemaDefinition | BooleanSchemaDefinition | DateSchemaDefinition>)
? P extends { default: ResolvePathType<P[TypeKey]> }
? true
: false
: false;
: P extends (Record<TypeKey, NumberSchemaDefinition | StringSchemaDefinition | BooleanSchemaDefinition | DateSchemaDefinition>)
? P extends { default: ResolvePathType<P[TypeKey]> }
? true
: false
: false;

/**
* @summary Path base type defined by using TypeKey
Expand Down

0 comments on commit ca6f97b

Please sign in to comment.