aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/datatype.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datatype.ts b/src/datatype.ts
index 1da3cace..e5dac1f9 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): Date {
+ datetime(
+ options?: number | { min?: number; max?: number; precision?: number }
+ ): Date {
if (typeof options === 'number') {
options = {
max: options,