Skip to content

Commit 8530f26

Browse files
jdxclaude
andcommitted
refactor: use RUNTIME.osType/archType instead of deprecated OS_TYPE/ARCH_TYPE
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c9a54eb commit 8530f26

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

types/mise-plugin.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
-- Globals
77
------------------------------------------------------------------------
88

9-
--- Current operating system type (e.g. "linux", "darwin", "windows")
10-
---@type string
11-
OS_TYPE = ""
12-
13-
--- Current architecture type (e.g. "amd64", "arm64")
14-
---@type string
15-
ARCH_TYPE = ""
16-
179
---@class Runtime
1810
---@field osType string Operating system type (e.g. "linux", "darwin", "windows")
1911
---@field archType string Architecture type (e.g. "amd64", "arm64")
2012
---@field version string Runtime version
2113
---@field pluginDirPath string Path to the plugin directory
2214
RUNTIME = {}
2315

16+
--- @deprecated Use RUNTIME.osType instead
17+
---@type string
18+
OS_TYPE = ""
19+
20+
--- @deprecated Use RUNTIME.archType instead
21+
---@type string
22+
ARCH_TYPE = ""
23+
2424
------------------------------------------------------------------------
2525
-- PLUGIN table & hook method signatures
2626
------------------------------------------------------------------------

0 commit comments

Comments
 (0)