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:
Vendored
+20
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user