typechecked optargs constructors for watcher and event
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
local Object = require("nvim-tree.classic")
|
||||
local Class = require("nvim-tree.classic")
|
||||
|
||||
---@class (exact) LinkNode: Object
|
||||
---@class (exact) LinkNode: Class
|
||||
---@field link_to string
|
||||
---@field protected fs_stat_target uv.fs_stat.result
|
||||
local LinkNode = Object:extend()
|
||||
local LinkNode = Class:extend()
|
||||
|
||||
---@class (exact) LinkNodeArgs: NodeArgs
|
||||
---@field link_to string
|
||||
@@ -12,8 +12,6 @@ local LinkNode = Object:extend()
|
||||
---@protected
|
||||
---@param args LinkNodeArgs
|
||||
function LinkNode:new(args)
|
||||
LinkNode.super.new(self, args)
|
||||
|
||||
self.link_to = args.link_to
|
||||
self.fs_stat_target = args.fs_stat_target
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user