typeof , typenameof

$typeof() returns a type derived from its argument, this function is used to assign or ovrride a type parameter, or in a comparison with another $typeof, and evaluated during elaboration. so, it's usually used in generate block.

$typename() returns a string that represents the resolved type of its argument.

posted on 2019-03-06 11:30  lybinger  阅读(161)  评论(0)    收藏  举报

导航