Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
265 views
in Technique[技术] by (71.8m points)

js关于方法增强的问题

我想让编辑器能够正确提示增强后的方法(形参)。

这样写编辑器是可以正确提示:
image

但是如果像这样写就不行:
image

怎么样改能使得我传入一个handler方法,在调用test方法时编辑器能够按照handler的形参来提示?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

That's why we should use typescript.

image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...