File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,11 +153,12 @@ export class ProtoNode extends InternalBasis<Proto.Declaration> {
153153 this . requiresInvalidDateCheck ?
154154 data => data instanceof Date && data . toString ( ) !== "Invalid Date"
155155 : this . isArrayProto ? data => isArray ( data )
156- : data => data instanceof this . proto
156+ : data => data instanceof this . proto
157157
158158 compiledCondition =
159- this . isArrayProto ? `Array.isArray(data)`
160- : `data instanceof ${ this . serializedConstructor } ${ this . requiresInvalidDateCheck ? ` && data.toString() !== "Invalid Date"` : "" } `
159+ this . isArrayProto ? `Array.isArray(data)` : (
160+ `data instanceof ${ this . serializedConstructor } ${ this . requiresInvalidDateCheck ? ` && data.toString() !== "Invalid Date"` : "" } `
161+ )
161162 compiledNegation = `!(${ this . compiledCondition } )`
162163
163164 protected innerToJsonSchema ( ctx : ToJsonSchema . Context ) : JsonSchema {
You can’t perform that action at this time.
0 commit comments