meta typing fix
This commit is contained in:
1 parent
c3b809cc72
commit
77ec77b3e1
1 file changed
+6
-6
+6
-6
@@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user