mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
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:
@@ -2,7 +2,7 @@ import { LOCALE } from "@config";
|
||||
|
||||
interface DatetimesProps {
|
||||
pubDatetime: string | Date;
|
||||
modDatetime: string | Date | undefined;
|
||||
modDatetime: string | Date | undefined | null;
|
||||
}
|
||||
|
||||
interface Props extends DatetimesProps {
|
||||
|
||||
Reference in New Issue
Block a user