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 { export class MetaBuilder {
private image: Pic private image?: Pic
private title: string private title?: string
private description: string private description?: string
private data: Partial<IMeta> private data?: Partial<IMeta>
setData(param: Partial<IMeta>) { setData(param: Partial<IMeta>) {
this.data = param this.data = param
@@ -56,8 +56,8 @@ export class MetaBuilder {
return meta({ return meta({
...this.data, ...this.data,
...image, ...image,
title: this.title ?? null, title: this.title,
description: this.description ?? null, description: this.description,
}) })
} }