mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-18 11:02:10 +00:00
feat: add missing lua stub (#15579)
* feat: add missing lua stub * fix: typo
This commit is contained in:
@ -556,6 +556,12 @@ def generate_stub(root: Path) -> str:
|
||||
"hl.notification.get": "fun(): HL.Notification[]",
|
||||
"hl.layout.register": "fun(name: string, provider: HL.LayoutProvider): nil",
|
||||
"hl.exec_cmd": "fun(cmd: string, rules?: table<string, string|number|boolean>): nil",
|
||||
"hl.get_loaded_plugins": "fun(): HL.Plugin[]",
|
||||
"hl.is_key_down": "fun(key: number|string): boolean",
|
||||
"hl.version": "fun(): string",
|
||||
"hl.clear_crashed_lockscreen": "fun(): nil",
|
||||
"hl.exec_scheduled_prop_refresh_immediately": "fun(): nil",
|
||||
"hl.unbind": "fun(key: string): nil"
|
||||
}
|
||||
api_signatures.update(query_overrides)
|
||||
|
||||
@ -728,6 +734,19 @@ def generate_stub(root: Path) -> str:
|
||||
)
|
||||
lines.append("")
|
||||
|
||||
lines.extend(
|
||||
emit_class_block(
|
||||
"HL.Plugin",
|
||||
[
|
||||
("name", "string", True),
|
||||
("author", "string", True),
|
||||
("version", "string", True),
|
||||
("description", "string", True),
|
||||
],
|
||||
)
|
||||
)
|
||||
lines.append("")
|
||||
|
||||
for class_name in sorted(query_types.keys()):
|
||||
fields = [(name, typ, True) for name, typ in sorted(query_types[class_name].items())]
|
||||
lines.extend(emit_class_block(class_name, fields))
|
||||
|
||||
Reference in New Issue
Block a user