ws-cleanup: merge ws/cleanup-types (type annotations)

This commit is contained in:
4DBug committed 2026-10-31 11:27:42 -05:00
commit 5d7c223ab8
115 files changed
+583 -515

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ end
-- ------------------------------------------------------------------------------------------------ decode
local function parsePls(ls: { string }, base: string?, baseScheme: string?, warnings: { string }): Result
local res: Result = { kind = "playlist", format = "pls", entries = {}, warnings = warnings, meta = {} }
local files, titles, lengths = {}, {}, {}
local files: { [number]: string }, titles: { [number]: string }, lengths: { [number]: string } = {}, {}, {}
local declared = nil
for _, line in ls do
local l = Text.trim(line)
+1 -1
View File
@@ -121,7 +121,7 @@ function Xspf.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Playlist?, E
for _, list in elements(root, "trackList") do
for i, track in elements(list, "track") do
local tbase, tscheme = withXmlBase(track, pbase, pscheme)
local locs = {}
local locs: { string } = {}
for _, l in elements(track, "location") do
local s = trim(Xml.text(l))
if s ~= "" then