From c975c2bf9ec923209feef2fdb8bef193e79cf00c Mon Sep 17 00:00:00 2001 From: Ethan Resnick Date: Mon, 29 Apr 2024 04:08:04 -0400 Subject: [PATCH] feat: don't make tagged type compatibility dependent on type-fest version --- package.json | 3 +++ source/opaque.d.ts | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 01889fba4..4ba73d614 100644 --- a/package.json +++ b/package.json @@ -67,5 +67,8 @@ "compilerOptions": { "noUnusedLocals": false } + }, + "dependencies": { + "tagged-tag": "^0.1.0" } } diff --git a/source/opaque.d.ts b/source/opaque.d.ts index a517be1c1..e5525c3bd 100644 --- a/source/opaque.d.ts +++ b/source/opaque.d.ts @@ -1,4 +1,4 @@ -declare const tag: unique symbol; +import type tag from 'tagged-tag'; export type TagContainer = { readonly [tag]: Token; @@ -250,3 +250,5 @@ type RemoveAllTags = T extends Tag : never }[keyof T[typeof tag]] : T; + +export {type default as tag} from 'tagged-tag';