From 0977b7b41ba9ee6dd8b27c18232ee1bd558fe06f Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 10 Mar 2021 11:09:27 +0100 Subject: [PATCH] core-api: make ApiRef description optional Co-authored-by: Juan Lulkin Signed-off-by: Patrik Oldsberg --- packages/core-api/src/apis/system/ApiRef.ts | 4 ++-- packages/core-api/src/apis/system/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core-api/src/apis/system/ApiRef.ts b/packages/core-api/src/apis/system/ApiRef.ts index 0e1eb177c8..e61036c61c 100644 --- a/packages/core-api/src/apis/system/ApiRef.ts +++ b/packages/core-api/src/apis/system/ApiRef.ts @@ -18,7 +18,7 @@ import type { ApiRef } from './types'; export type ApiRefConfig = { id: string; - description: string; + description?: string; }; class ApiRefImpl implements ApiRef { @@ -38,7 +38,7 @@ class ApiRefImpl implements ApiRef { return this.config.id; } - get description(): string { + get description() { return this.config.description; } diff --git a/packages/core-api/src/apis/system/types.ts b/packages/core-api/src/apis/system/types.ts index 6234a55c71..a4bc95a3c3 100644 --- a/packages/core-api/src/apis/system/types.ts +++ b/packages/core-api/src/apis/system/types.ts @@ -16,7 +16,7 @@ export type ApiRef = { id: string; - description: string; + description?: string; T: T; };