能否直接在Visual Studio Code里查看TypeScript的数据类型定义

59 阅读1分钟

Dear colleagues, I have a development question regarding Visual Studio Code.

For example when we hover the mouse on withConfig method of B2cStorefrontModile,

Visual Studio Code can intelligently display the data type for optional argument “config” is: StorefrontConfig.

My question: is it possible to directly navigate to data type definition for StorefrontConfig in Visual Studio Code?

I didn’t find a way, so I have to manually search and find it’s defined in file:node_modules@spartacus\storefront\storefront-config.d.ts

Nevertheless I could like to know if there’s any smart way 😃

要获取更多Jerry的原创文章,请关注公众号"汪子熙":