From bdb10fdb48bf62e461661720998e3d1fd1a2aacd Mon Sep 17 00:00:00 2001 From: KATT Date: Sat, 30 Sep 2023 19:27:07 +0200 Subject: [PATCH] cool --- src/index.ts | 6 ++++++ src/tson.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/index.ts diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..498706e4 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,6 @@ +export { + tsonDeserializer, + tsonParser, + tsonSerializer, + tsonStringifier, +} from "./tson.js"; diff --git a/src/tson.ts b/src/tson.ts index 0a541414..96bb92c4 100644 --- a/src/tson.ts +++ b/src/tson.ts @@ -154,7 +154,7 @@ export function tsonSerializer(opts: TsonOptions): TsonSerializeFn { * Maps over an object or array, returning a new object or array with the same keys. * If the input is not an object or array, the input is returned. */ -export function mapOrReturn( +function mapOrReturn( input: unknown, fn: (val: unknown, key: number | string) => unknown, ): unknown {