Skip to content

Commit

Permalink
feat: don't make tagged type compatibility dependent on type-fest ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
ethanresnick committed May 6, 2024
1 parent fb6c2aa commit c975c2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@
"compilerOptions": {
"noUnusedLocals": false
}
},
"dependencies": {
"tagged-tag": "^0.1.0"
}
}
4 changes: 3 additions & 1 deletion source/opaque.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare const tag: unique symbol;
import type tag from 'tagged-tag';

export type TagContainer<Token> = {
readonly [tag]: Token;
Expand Down Expand Up @@ -250,3 +250,5 @@ type RemoveAllTags<T> = T extends Tag<PropertyKey, any>
: never
}[keyof T[typeof tag]]
: T;

export {type default as tag} from 'tagged-tag';

0 comments on commit c975c2b

Please sign in to comment.