diff --git a/src/datatype.ts b/src/datatype.ts index a4f1c8d0577..e5dac1f941d 100644 --- a/src/datatype.ts +++ b/src/datatype.ts @@ -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,