pema 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,7 @@ import type Infer from "#Infer";
|
|
|
3
3
|
import OptionalType from "#OptionalType";
|
|
4
4
|
import type Parsed from "#Parsed";
|
|
5
5
|
import type ParseOptions from "#ParseOptions";
|
|
6
|
+
import type Serialized from "#Serialized";
|
|
6
7
|
import Storable from "#Storable";
|
|
7
8
|
import type { JSONValue } from "@rcompat/type";
|
|
8
9
|
export type ParsedJSON = Parsed<JSONValue>;
|
|
@@ -17,9 +18,9 @@ export default class JSONType<S extends JSONInput = undefined> extends Storable<
|
|
|
17
18
|
default(value: (() => Infer<this>) | Infer<this>): DefaultType<this, Infer<this>>;
|
|
18
19
|
parse(x: unknown, options?: ParseOptions): Infer<this>;
|
|
19
20
|
toJSON(): {
|
|
20
|
-
of?: import("./Serialized.js").default | undefined;
|
|
21
21
|
type: "json";
|
|
22
22
|
datatype: "json";
|
|
23
|
+
of?: Serialized;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export {};
|