feat(plugins): add JSON parsing/serialization (#6420)

Reviewed-by: Mm2PL <mm2pl+gh@kotmisia.pl>
Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2025-11-21 17:43:28 +01:00
committed by GitHub
parent 115428d7f4
commit b63739e792
17 changed files with 1509 additions and 4 deletions
+20
View File
@@ -377,3 +377,23 @@ declare namespace c2 {
Repost,
}
}
declare module "chatterino.json" {
class _Dummy {}
function parse(
text: string,
opts?: { allow_comments?: boolean; allow_trailing_commas?: boolean }
): any;
function stringify(
item: any,
opts?: { pretty?: boolean; indent_char?: string; indent_size?: number }
): string;
let exports: {
null: _Dummy;
parse: typeof parse;
stringify: typeof stringify;
};
export = exports;
}