-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be confused to Backticks #2949
Comments
应该没有区别 |
There should be no difference |
I guess so too XD |
additional部分是什么意思 |
In the Additional Notes section of the body, what should the |
不过以后应该会出现类似: ---@param a `T`
---@return System.`T` 这样的类型变换功能, 你要的功能在typescript里面叫做Indexed type, 这个实现看起来比较复杂如果实现了的话, 他有可能是: ---@param key `T`
---@return X[`T`] |
However, something like this should appear in the future: ---@param a `T`
---@return System.`T` Such type conversion function, The function you want is called Indexed type in typescript. This implementation looks more complicated. If implemented, it may be: ---@param key `T`
---@return X[`T`] |
I am indeed an old user of Typescript, so asked this question. |
ts里面提供的类型体操要实现起来是比较麻烦的, 我看这一套体操, mapped type, indexed type, keyof type, extends type, 都要实现才能满足基本需求, luals在4.0有非常初步的泛型类支持, 那时候再讨论这些或许才有意义 |
The type gymnastics provided in ts are more troublesome to implement. I think this set of gymnastics, mapped type, indexed type, keyof type, extends type, must be implemented to meet the basic needs. Luals has very preliminary generics in 4.0 Class support, it might make sense to discuss these at that time |
I would like to contribute to 4.0 and implement these extended types but am unable to get it to build. |
Issue Description
I noticed two examples about backticks.
The first is in
@generic
Capture with BackticksThe second is in
@param
Generic Function ParameterAre there any differences between them?
Additional Notes
BTW, how can I annotate this:
Is it possible to use backticks?
The text was updated successfully, but these errors were encountered: