Open vlsergeyatsbt opened 5 years ago
For anyone who have the same issue. Workaround is to remove type template and use "internal" type alias:
type ValueType = any;
class TestClass {
do( ) {
const items : ValueType[] = JSON.parse( '[{ "a": null, "b": "b" }, { "a": "a", "b": null }]' );
console.log(items);
}
}
const testClass : TestClass = new TestClass();
testClass.do();
This is a:
Which concerns:
What is the current behaviour?
What is the expected behaviour?
Shall not throw an exception.
Which package versions are you using?