Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { Class, JSONValue, SuperJSONResult, SuperJSONValue } from './types.js';
import {
Class,
JSONValue,
SerializableJSONValue,
SuperJSONResult,
SuperJSONValue,
} from './types.js';
import { ClassRegistry, RegisterOptions } from './class-registry.js';
import { Registry } from './registry.js';
import {
Expand All @@ -13,6 +19,14 @@ import {
} from './plainer.js';
import { copy } from 'copy-anything';

export {
CustomTransfomer,
CustomTransformerRegistry,
JSONValue,
SerializableJSONValue,
SuperJSONValue,
};

export default class SuperJSON {
/**
* If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
Expand Down