Skip to content

Some ideas for typegen.js #246

@PFiS1737

Description

@PFiS1737

Hi, I have some issue reports and ideas regarding typegen.js:

  1. Instead of mentioning inheritance in comments, use type declarations like ---@class (exact) ui.Line : ui.Style to indicate inheritance relationships.

  2. The parameter tables seem unnecessary — most of the time they simply duplicate the function signature. We could print the table only for signatures that have a Note, or perhaps find a better way to include the note?

  3. It seems that some methods and properties are still missing from the type definitions, such as the base of Url, Command.PIPED, etc.

  4. The utility functions in yazi-plugin/preset/ya.lua are not included in the type definitions.

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