From 5df68c5d8efee259bc9602d602ffeef5b2761f10 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:20:30 -0500 Subject: [PATCH] remove dupe --- packages/util/superjson/index.ts | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 packages/util/superjson/index.ts diff --git a/packages/util/superjson/index.ts b/packages/util/superjson/index.ts deleted file mode 100644 index 4da4fa1e66..0000000000 --- a/packages/util/superjson/index.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { DateTime, Interval } from 'luxon' -import sj from 'superjson/dist' - -sj.registerCustom( - { - isApplicable: (v: unknown): v is DateTime => DateTime.isDateTime(v), - serialize: (v: DateTime) => v.toJSON() as string, - deserialize: (v: string) => DateTime.fromISO(v), - }, - 'DateTime' -) - -sj.registerCustom( - { - isApplicable: (v: unknown): v is Interval => Interval.isInterval(v), - serialize: (v: Interval) => v.toISO(), - deserialize: (v: string) => Interval.fromISO(v), - }, - 'Interval' -) - -export { sj as superjson }