aboutsummaryrefslogtreecommitdiff
path: root/src/date.ts
diff options
context:
space:
mode:
authorEric Cheng <[email protected]>2022-01-29 15:48:16 -0500
committerGitHub <[email protected]>2022-01-29 21:48:16 +0100
commitb5482df6a5083555d6ac0d87de89b0736615c727 (patch)
tree3f7c00304b9df3326631f8cdc4211776b7f57cb1 /src/date.ts
parent6820a2908e771d5563f55355c819d86b4209855b (diff)
downloadfaker-b5482df6a5083555d6ac0d87de89b0736615c727.tar.xz
faker-b5482df6a5083555d6ac0d87de89b0736615c727.zip
chore: add more type annotations (#358)
Diffstat (limited to 'src/date.ts')
-rw-r--r--src/date.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date.ts b/src/date.ts
index 63bcb120..ebde9b7f 100644
--- a/src/date.ts
+++ b/src/date.ts
@@ -159,7 +159,7 @@ export class _Date {
* @method faker.date.month
* @param options
*/
- month(options?: { abbr?: boolean; context?: boolean }) {
+ month(options?: { abbr?: boolean; context?: boolean }): string {
options = options || {};
let type = 'wide';
@@ -185,7 +185,7 @@ export class _Date {
* @method faker.date.weekday
* @param options
*/
- weekday(options?: { abbr?: boolean; context?: boolean }) {
+ weekday(options?: { abbr?: boolean; context?: boolean }): string {
options = options || {};
let type = 'wide';