From 267197d02ba907aacf438bb577431284c7e46463 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Mon, 11 Sep 2023 16:44:39 -0400 Subject: [PATCH] Omit inferred types --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 15cd800..b903300 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,8 +30,7 @@ const visitorSpecs: VisitorSpec[] = [ type: 'datetime', pattern: /(\d{4}-\d{2}-\d{2})(?:[ T](\d{2}(?::\d{2}(?::\d{2}(?:\.\d+)?)?))?)?Z?/, - replacement: (_: string, date: string, time?: string) => - time ? `${date}T${time}Z` : `${date}Z`, + replacement: (_, date, time) => (time ? `${date}T${time}Z` : `${date}Z`), }, ]