rename map -> hydrateArray
This commit is contained in:
parent
467b34a484
commit
6feeadbf69
@ -9,7 +9,7 @@ export default class Resource {
|
||||
return plainToClassFromExist(self, from, options);
|
||||
}
|
||||
|
||||
public static map<T = {}>(ClassEntity: { new (): T }, fromArray: T[], options?: ClassTransformOptions): T[] {
|
||||
public static hydrateArray<T = {}>(ClassEntity: { new (): T }, fromArray: T[], options?: ClassTransformOptions): T[] {
|
||||
return fromArray.map((from) => {
|
||||
return plainToInstance(ClassEntity, from, options);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user