interface TimestampOptions {
    alias?: string;
    format?: string | (() => string);
}

Properties

Properties

alias?: string

The name of an alias for the timestamp property, that will be added to the info object.

format?: string | (() => string)

Either the format as a string accepted by the fecha module or a function that returns a formatted date. If no format is provided new Date().toISOString() will be used.

Type declaration

    • (): string
    • Returns string