Skip to content

Commit

Permalink
fix(urns): pass ‘NID‘ and ‘NSS’ to base class type parameters
Browse files Browse the repository at this point in the history
‘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’.
  • Loading branch information
szkl committed Jan 12, 2024
1 parent 97e4eac commit 03bbdd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/urns/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TypedComponentsURNSpace<
RCompType extends CompType = CompType,
QCompType extends CompType = CompType,
URNType extends BaseURN<NID, NSS> = BaseURN<NID, NSS>
> extends URNSpace<string, string, string> {
> extends URNSpace<NID, NSS, string> {
constructor(nid: NID, options?: Partial<SpaceOptions<NSS, string>>) {
super(nid, options)
}
Expand Down

0 comments on commit 03bbdd4

Please sign in to comment.