arrays - Object literal's property 'children' implicitly has an 'any[]' type -


how can set myotherkey property have any?

typescript error ..

object literal's property 'children' implicitly has 'any[]' type 

object initialization ..

let myobject = {   mykey: 'somevalue',   myotherkey: [] }; 

what assert expected type of array should in order overwrite compiler's resolution of any type.

let myobject = {   mykey: 'somevalue',   myotherkey: [] string[] }; 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -