Should be resolved with this commit which is available from v5.1.1 that’s now available on MyGet.
Although I can’t reproduce any issue with:
createResponse() { return new Array<Configuration>(); }
Which is valid running with TypeScript 3.0.1 or using the default TS Lint settings.
Using any combination of:
createResponse() { return new Configuration[]; }
createResponse() { return new Configuration[]{}; }
createResponse() { return Configuration[]; }
createResponse() { return Configuration[]{}; }
Results in syntax errors, the only valid syntax for returning generic arrays are:
createResponse() { return new Array<Configuration>(); }
createResponse() { return <Configuration[]>[]; }
createResponse() { return [] as Configuration[]; }
I’ve chosen to retain the original syntax which uses the least foreign syntax.
Incidentally generic arrays are fairly unbalanced all-round in TypeScript as you need to use short-hand syntax when implementing a generic array argument, e.g:
public class MyRequest implements IReturm<MyArray[]> { .. }
But need to use generic type syntax if you’re extending a generic Array, e.g:
public class MyRequest extends Array<MyArray> { .. }