Replies: 1 comment
-
---@class cdata
---@diagnostic disable-next-line: duplicate-doc-alias
---@alias type type | "cdata" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
NagelRing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the Tarantool database. They expand the types of LUA data and add the type "cdata". How to embed a new data type in that plugin?
For example, I make a description of the functions of the "clock" module from Tarantool.
The plugin highlights the word "cdata", but correctly uses it in the hints.
I can simply disable the syntax check of this string, but I would like to add a new type.
In particular, for the autocomplete it when comparing type(v) == 'cdata'
Beta Was this translation helpful? Give feedback.
All reactions