Skip to content

Feature request: Analog of diff for custom declared function #65

Description

@TIMONz1535

I want to write new declaration for some functions, for example, to add generics or some complex types (@nodiscard or even integer) that the wiki does not allow us to use.

However, if I do this in a "custom directory", then I completely replace the function description and eventually it becomes obsolete.

I would prefer to be able to write a "diff" when I can change the parameter types, but not change the parameter name/desc with a full method info.

--[[... unchanged info ...]]
---@generic T
---@param metaName `T` --[[... unchanged desc ...]]
---@return T? --[[... unchanged desc ...]]
---@nodiscard
function _G.FindMetaTable(metaName) end

Do you have any ideas on how to do this? I don't mean the real diff that is used in version control systems - maybe it's too complicated.

p.s. But yes, I don't want to write a @nodiscard to everything, it's stupid.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions