When using objectMapper without propertyMap parameter in project with typescript or checkJs enabled as so
new objectMapper(fromObject, toObject)
Compiler complaint about last parameter not provided:
Also from looking at the implementation toObject parameter is also optional so marking both as optional removes the type error
Maybe Also marking the function with @constructor is unnecessary as there is no using of this in the implementation and the function can be used without the word new
When using
objectMapper
withoutpropertyMap
parameter in project withtypescript
orcheckJs
enabled as soCompiler complaint about last parameter not provided:
Also from looking at the implementation
toObject
parameter is also optional so marking both as optional removes the type errorMaybe Also marking the function with
@constructor
is unnecessary as there is no using ofthis
in the implementation and the function can be used without the wordnew