Skip to content

Commit

Permalink
Merge pull request #299 from Nfinished/patch-1
Browse files Browse the repository at this point in the history
Format function type should only return string
  • Loading branch information
spencermountain authored Aug 6, 2021
2 parents 25e6456 + f43ae74 commit 270869c
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 270869c

Please sign in to comment.