From 996d4c14a7f978a13c7aaf9f7515cfd0263a059c Mon Sep 17 00:00:00 2001 From: Alessandro Chitolina Date: Fri, 23 Feb 2024 11:36:55 +0100 Subject: [PATCH] [util] fix: better definition of mix, implementationOf and getInterface mixin functions --- types/Ulid.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/Ulid.d.ts b/types/Ulid.d.ts index 89333dd..66e6edf 100644 --- a/types/Ulid.d.ts +++ b/types/Ulid.d.ts @@ -1,5 +1,6 @@ declare namespace Jymfony.Component.Uid { import AbstractUid = Jymfony.Component.Uid.AbstractUid; + import UidInterface = Jymfony.Contracts.Uid.UidInterface; /** * A ULID is lexicographically sortable and contains a 48-bit timestamp and 80-bit of crypto-random entropy. @@ -20,7 +21,7 @@ declare namespace Jymfony.Component.Uid { /** * @inheritdoc */ - static fromString(ulid: string): Ulid; + static fromString(uid: string): T extends Ulid ? T : never; toBuffer(): Buffer; toBase32(): string;