From 1b3946c58b80235178732b73b6b694176895abc5 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 2 May 2022 16:31:26 +0200 Subject: [PATCH] close 186 (#187) --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index a255fd7..91c57d3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -66,13 +66,13 @@ export const stringify = (object: SuperJSONValue): string => export const parse = (string: string): T => deserialize(JSON.parse(string)); -const registerClass = (v: Class, options?: RegisterOptions | string) => +export const registerClass = (v: Class, options?: RegisterOptions | string) => ClassRegistry.register(v, options); -const registerSymbol = (v: Symbol, identifier?: string) => +export const registerSymbol = (v: Symbol, identifier?: string) => SymbolRegistry.register(v, identifier); -const registerCustom = ( +export const registerCustom = ( transformer: Omit, 'name'>, name: string ) =>