Skip to content

Commit

Permalink
Format function type should only return string
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nfinished authored Aug 3, 2021
1 parent e8c9ddf commit f43ae74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f43ae74

Please sign in to comment.