From 77ec77b3e1a81dcd379318692202a5295874fc74 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 6 Sep 2022 13:29:44 +0300 Subject: [PATCH] meta typing fix --- src/lib/meta.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/meta.ts b/src/lib/meta.ts index f0a84303..4fd6ceb2 100644 --- a/src/lib/meta.ts +++ b/src/lib/meta.ts @@ -25,10 +25,10 @@ export function meta(props: Partial): IMeta { } export class MetaBuilder { - private image: Pic - private title: string - private description: string - private data: Partial + private image?: Pic + private title?: string + private description?: string + private data?: Partial setData(param: Partial) { 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, }) }