fix: solve modDatetime type errors

Update modDatetime props type to have null type for components that have modDatetime as props.
This commit is contained in:
satnaing
2024-01-05 10:31:44 +06:30
committed by Sat Naing
parent c3567896fb
commit d929ce1fef
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { LOCALE } from "@config";
interface DatetimesProps { interface DatetimesProps {
pubDatetime: string | Date; pubDatetime: string | Date;
modDatetime: string | Date | undefined; modDatetime: string | Date | undefined | null;
} }
interface Props extends DatetimesProps { interface Props extends DatetimesProps {
+1 -1
View File
@@ -12,7 +12,7 @@ export interface Props {
ogImage?: string; ogImage?: string;
canonicalURL?: string; canonicalURL?: string;
pubDatetime?: Date; pubDatetime?: Date;
modDatetime?: Date; modDatetime?: Date | null;
scrollSmooth?: boolean; scrollSmooth?: boolean;
} }