From e719ef11c9e0f89f20ec39b3709d12a38f064ee0 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 4 Mar 2024 12:16:02 +0530 Subject: [PATCH] feat(types): update `net` to include method `json5Decode` --- types/net.luau | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/net.luau b/types/net.luau index 47c6249..793974a 100644 --- a/types/net.luau +++ b/types/net.luau @@ -290,6 +290,19 @@ function net.jsonDecode(encoded: string): any return nil :: any 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 @tag must_use