mirror of
https://github.com/lune-org/lune.git
synced 2025-04-19 19:34:02 +01:00
feat(types): update net
to include method json5Decode
This commit is contained in:
parent
e4c4ea4129
commit
e719ef11c9
1 changed files with 13 additions and 0 deletions
|
@ -290,6 +290,19 @@ function net.jsonDecode(encoded: string): any
|
||||||
return nil :: any
|
return nil :: any
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[=[
|
||||||
|
@within Net
|
||||||
|
@tag must_use
|
||||||
|
|
||||||
|
Decodes the given JSON5 string into a lua value.
|
||||||
|
|
||||||
|
@param encoded The JSON5 string to decode
|
||||||
|
@return The decoded lua value
|
||||||
|
]=]
|
||||||
|
function net.json5Decode(encoded: string): any
|
||||||
|
return nil :: any
|
||||||
|
end
|
||||||
|
|
||||||
--[=[
|
--[=[
|
||||||
@within Net
|
@within Net
|
||||||
@tag must_use
|
@tag must_use
|
||||||
|
|
Loading…
Add table
Reference in a new issue