Skip to content

Commit

Permalink
updated datetime definition based off feedback
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <[email protected]>
  • Loading branch information
jared-fraser and Shinigami92 authored Jan 17, 2022
1 parent ed9f301 commit d0cce58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/datatype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export class Datatype {
* @method faker.datatype.datetime
* @param options pass min OR max as number of milliseconds since 1. Jan 1970 UTC
*/
datetime(options?: number | { min?: number | undefined; max?: number | undefined }): Date {
datetime(
options?: number | { min?: number; max?: number; precision?: number }
): Date {
if (typeof options === 'number') {
options = {
max: options,
Expand Down

0 comments on commit d0cce58

Please sign in to comment.