#How can I solve this?

2 messages · Page 1 of 1 (latest)

restive holly
#

I instantiate the dictionary object like this:

private dynContentDictionary: { [name: string]: DynamicContentDTO | DynamicContentDTO[]; };

Seems like typescript isn't smart enough to infer I am dealing with a DTO[], since I passed the isArray check

#

Here's my entire code