Skip to content

Using tealdocs with function declaration #8

@YPetremann

Description

@YPetremann

in a d.tl file or in records, functions declaration have nameless parameters, adding names is considered a syntax error, what is the intended way to put docs about his parameters

On quick example is this:

global record script 
  --- Register a function to be run on mod initialization.
  on_init: function(
    --- The handler for this event. Passing nil will unregister it.
    function()
  )
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions