Skip to content

Commit 73fea61

Browse files
committed
fix(types): fix path_map types after accepting nil
1 parent a120bae commit 73fea61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/opencode/types.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
---@field spawn_command? fun(port: number, url: string): number | nil -- Optional function to start the server, may return server PID
120120
---@field kill_command? fun(port: number, url: string): nil -- Optional function to stop the server when auto_kill is true
121121
---@field auto_kill boolean -- Kill spawned servers when nvim exits (default: true)
122-
---@field path_map string | fun(host_path: string): string | nil -- Map host paths to server paths
123-
---@field reverse_path_map fun(server_path: string): string | nil -- Map server paths back to host paths
122+
---@field path_map (string | fun(host_path: string): string) | nil -- Map host paths to server paths
123+
---@field reverse_path_map (fun(server_path: string): string) | nil -- Map server paths back to host paths
124124

125125
---@class OpencodeUIConfig
126126
---@field enable_treesitter_markdown boolean

0 commit comments

Comments
 (0)