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';