static fromDto(httpClient: HttpClient, adalSvc: MsAdalAngular6Service) {
return (dto: Dto) => {
return new Note(httpClient, dto.xxx, adalSvc);
};
}
How to get the Note object from this static method in typescript. I have create a Dto object and trying to pass it to this method which will give me a Note object but can't seem to do that.
What I did was this
const notes = dtos.map(d => {
Note.fromDto(null, null).apply(d); });
can you please tell me how to do that?