We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c913b commit 60b71fdCopy full SHA for 60b71fd
1 file changed
src/datatype.ts
@@ -95,7 +95,9 @@ export class Datatype {
95
* @method faker.datatype.datetime
96
* @param options pass min OR max as number of milliseconds since 1. Jan 1970 UTC
97
*/
98
- datetime(options): Date {
+ datetime(
99
+ options?: number | { min?: number; max?: number; precision?: number }
100
+ ): Date {
101
if (typeof options === 'number') {
102
options = {
103
max: options,
0 commit comments