From f43ae74cd56bbab00c8005fcf272471d1ee497af Mon Sep 17 00:00:00 2001 From: Adam Trager Date: Tue, 3 Aug 2021 11:33:08 -0400 Subject: [PATCH] Format function type should only return string I _think_ this is correct? Didn't see how an object would be returned in the source and the docs. comment on the above line suggest it's only string. --- types/types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/types.d.ts b/types/types.d.ts index ea1b07f2..d1a774ec 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -39,7 +39,7 @@ export interface Spacetime { timezone: () => TimezoneMeta /** output nicely-formatted strings */ - format: (format: Format) => string | object + format: (format: Format) => string /** output formatted string using unix formatting code (yyyy.MM.dd h:mm a) */ unixFmt: (format: string) => string