Skip to content

Commit c975c2b

Browse files
committed
feat: don't make tagged type compatibility dependent on type-fest version
1 parent fb6c2aa commit c975c2b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,8 @@
6767
"compilerOptions": {
6868
"noUnusedLocals": false
6969
}
70+
},
71+
"dependencies": {
72+
"tagged-tag": "^0.1.0"
7073
}
7174
}

source/opaque.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare const tag: unique symbol;
1+
import type tag from 'tagged-tag';
22

33
export type TagContainer<Token> = {
44
readonly [tag]: Token;
@@ -250,3 +250,5 @@ type RemoveAllTags<T> = T extends Tag<PropertyKey, any>
250250
: never
251251
}[keyof T[typeof tag]]
252252
: T;
253+
254+
export {type default as tag} from 'tagged-tag';

0 commit comments

Comments
 (0)