Currently transformAndValidate(classType, jsonString) returns Promise<classType> even if jsonString is a JSON array string. This feature need new type definition (Promise<classType|Array<classType>>) which will require type assertion from lib consumers.
Currently
transformAndValidate(classType, jsonString)
returnsPromise<classType>
even ifjsonString
is a JSON array string. This feature need new type definition (Promise<classType|Array<classType>>
) which will require type assertion from lib consumers.