You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/parser.ts
+39-27Lines changed: 39 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -403,16 +403,16 @@ function parseInterfaceProperties(
403
403
constpropGuard=global.GLOBAL_OPTIONS.skipGuards
404
404
? undefined
405
405
: propertyAllOf.length
406
-
? guardOptional(
407
-
accessProp(name),
408
-
false,
406
+
? guardOptional({
407
+
name: accessProp(name),
408
+
isRequired: false,
409
409
nullable,
410
-
()=>
410
+
guard: ()=>
411
411
`( ${propertyAllOf
412
412
.map(({ guard })=>guard?.('this can be anything'))
413
413
.filter((type): type is string=>!!type)
414
414
.join(' && ')} )`,
415
-
)
415
+
})
416
416
: parsedSchema.guard?.('this can be anything')||'';// todo: check the typing on the guards as the name probably should not be passed here (it does not seem to have any effect)
0 commit comments