From 03bbdd47c6cc0eeff4149dc47129c96f573842d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88nmez=20Kartal?= Date: Fri, 12 Jan 2024 06:41:25 +0300 Subject: [PATCH] =?UTF-8?q?fix(urns):=20pass=20=E2=80=98NID=E2=80=98=20and?= =?UTF-8?q?=20=E2=80=98NSS=E2=80=99=20to=20base=20class=20type=20parameter?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘URNSpace’ base class methods were using ‘string‘ type by default which was preventing type inference that would be achieved by predicate methods like ‘URNSpace.is’. --- packages/urns/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/urns/index.ts b/packages/urns/index.ts index d742ba904b..1669b7ada8 100644 --- a/packages/urns/index.ts +++ b/packages/urns/index.ts @@ -72,7 +72,7 @@ class TypedComponentsURNSpace< RCompType extends CompType = CompType, QCompType extends CompType = CompType, URNType extends BaseURN = BaseURN -> extends URNSpace { +> extends URNSpace { constructor(nid: NID, options?: Partial>) { super(nid, options) }