File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ export function autoTypedSchema() {
412412 array5 : any [ ] ;
413413 array6 : string [ ] ;
414414 array7 ?: string [ ] ;
415+ array8 ?: string [ ] ;
415416 decimal1 ?: Types . Decimal128 ;
416417 decimal2 ?: Types . Decimal128 ;
417418 decimal3 ?: Types . Decimal128 ;
@@ -458,6 +459,7 @@ export function autoTypedSchema() {
458459 array5 : [ ] ,
459460 array6 : { type : [ String ] } ,
460461 array7 : { type : [ String ] , default : undefined } ,
462+ array8 : { type : [ String ] , default : ( ) => undefined } ,
461463 decimal1 : Schema . Types . Decimal128 ,
462464 decimal2 : 'Decimal128' ,
463465 decimal3 : 'decimal128'
@@ -870,15 +872,3 @@ function gh12431() {
870872 type Example = InferSchemaType < typeof testSchema > ;
871873 expectType < { testDate ?: Date , testDecimal ?: Types . Decimal128 } > ( { } as Example ) ;
872874}
873-
874- function gh12420 ( ) {
875- const TestSchema = new Schema (
876- {
877- comments : { type : [ String ] , default : ( ) => undefined }
878- }
879- ) ;
880-
881- expectType < {
882- comments ?: string [ ]
883- } > ( { } as InferSchemaType < typeof TestSchema > ) ;
884- }
You can’t perform that action at this time.
0 commit comments