From fb60743f85efe9bc176933c92a8cd77cb2356ee3 Mon Sep 17 00:00:00 2001 From: Eric Allam Date: Thu, 19 Sep 2024 11:48:23 +0100 Subject: [PATCH] Export additional types --- src/index.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5636e659..6e071406 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 { @@ -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`.