Commit 610f77f
fix(fetchium): Fix declaration emit and rest subpath for downstream consumers (#1)
* fix(fetchium): Export TypeDefSymbol for declaration emit
Export `TypeDefSymbol` from types.ts so downstream consumers can emit
.d.ts files without TS4029 errors when using TypeDef<T> in public type
positions, such as when extending Entity.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(fetchium): Fix declaration emit for downstream consumers
Replace unique symbol brand with string brand to fix TS4029 errors
during declaration emit in downstream packages. TypeScript's declaration
emitter cannot reference unique symbols across package boundaries
(microsoft/TypeScript#56107), causing "cannot be named" errors for any
consumer compiling with declaration: true.
Also add the rest subpath entry to the Vite build config so that
fetchium/rest produces runtime JS bundles at the paths declared in
package.json exports.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b24a982 commit 610f77f
4 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments