Skip to content

Commit dcaae97

Browse files
committed
chore: type cast
1 parent 8973936 commit dcaae97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app-config-extensions/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export function timestampDirective(dateSource: () => Date = () => new Date()): P
225225
} else if (typeof value === 'object') {
226226
const { locale, ...options } = value;
227227

228-
formatted = date.toLocaleDateString(locale, options);
228+
formatted = date.toLocaleDateString(locale, options as Intl.DateTimeFormatOptions);
229229
} else {
230230
throw new AppConfigError('$timestamp was provided an invalid option');
231231
}

0 commit comments

Comments
 (0)