Skip to content

Commit

Permalink
add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Mar 26, 2024
1 parent 9893890 commit d6b222b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/date/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export class SimpleDateModule extends SimpleModuleBase {
*/
to: string | Date | number;
}): Date {
// TODO - consider removing in v10 as this check is only needed in JS
if (options == null || options.from == null || options.to == null) {
throw new FakerError(
'Must pass an options object with `from` and `to` values.'
Expand Down Expand Up @@ -250,6 +251,7 @@ export class SimpleDateModule extends SimpleModuleBase {
max: number;
};
}): Date[] {
// TODO - consider removing in v10 as this check is only needed in JS
if (options == null || options.from == null || options.to == null) {
throw new FakerError(
'Must pass an options object with `from` and `to` values.'
Expand Down

0 comments on commit d6b222b

Please sign in to comment.