massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / flatted / types.d.ts
index 91a04612e97345d14f2d6046bcfdebe776e85c30..d38b4a1b30abb08d28868ad85a3074a9f1832c10 100644 (file)
@@ -31,6 +31,16 @@ interface Flatted {
     replacer?: (number | string)[] | null,
     space?: string | number
   ): string;
+  /**
+   * Helper to allow explicit conversions with classes.
+   * @param value The JSON to convert to JavaScript value
+   */
+  fromJSON(value: any): any;
+  /**
+   * Helper to allow explicit conversions with classes.
+   * @param value A JavaScript value, usually an object or array, to be converted.
+   */
+  toJSON(value: any): any;
 }
 
 /**