-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmod.ts
More file actions
32 lines (28 loc) · 935 Bytes
/
mod.ts
File metadata and controls
32 lines (28 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Serializer/Deserializer that supports everything you can imagine.
*
* ### Example
*
* ```ts
* import { Serializer } from "https://deno.land/x/superserial/mod.ts";
*
* const serializer = new Serializer();
*
* const data = new Set();
* data.add(data); // set referencing itself
*
* const serialized = serializer.serialize(data);
*
* console.log(serialized); // Set($0)
* ```
*
* @module
*/
export type { ClassDecorator, ConstructType } from "./types.ts";
export { toDeserialize, toSerialize } from "./constants.ts";
export { type Reducer, serialize } from "./serialize.ts";
export { deserialize, type Reviver } from "./deserialize.ts";
import { Superserial } from "./superserial.ts";
export { type ClassDefinition, Superserial, type SuperserialOptions } from "./superserial.ts";
export { Serializable, serializable, type SerializableOptions } from "./decorators/serializable.ts";
export default Superserial;