meta typing fix

This commit is contained in:
tmshv committed 2022-09-06 13:29:44 +03:00
1 parent c3b809cc72
commit 77ec77b3e1
1 file changed
+6 -6
+6 -6
View File
@@ -25,10 +25,10 @@ export function meta(props: Partial<IMeta>): IMeta {
}
export class MetaBuilder {
private image: Pic
private title: string
private description: string
private data: Partial<IMeta>
private image?: Pic
private title?: string
private description?: string
private data?: Partial<IMeta>
setData(param: Partial<IMeta>) {
this.data = param
@@ -56,8 +56,8 @@ export class MetaBuilder {
return meta({
...this.data,
...image,
title: this.title ?? null,
description: this.description ?? null,
title: this.title,
description: this.description,
})
}