Skip to content

Commit

Permalink
Fix timestamp format type definitions to accept a function (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
yokomotod authored and DABH committed Mar 11, 2019
1 parent cb58d29 commit 4c4d1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export interface TimestampOptions {
* module or a function that returns a formatted date. If no format is provided `new
* Date().toISOString()` will be used.
*/
format?: string;
format?: string | (() => string);
/**
* The name of an alias for the timestamp property, that will be added to the `info` object.
*/
Expand Down

0 comments on commit 4c4d1e3

Please sign in to comment.