You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe RefSymbol should be renamed to _RefSymbol, marked as @internal in its comment, and exported.
There are probably a few other missing exports reported by api-extractor
I found that the reason is found in our Deepreadonly type.
It currently doesn't account for Refs, and instead treats refs like plain objects, which exposes that RefSymbol property as a result of the recursive nature of this type.
Version
3.2.19
Reproduction link
github.com
Steps to reproduce
Run
npm run build
commandWhat is expected?
The source should be successfully compiled into
.js
with.d.ts
declarationsWhat is actually happening?
The
TS4058
error occurs because ofRefSymbol
that is used byreadonly(ref)
internallyThe issue occurs only when
"declarations": true
is set intsconfig.json
as TypeScript can't resolveRefSymbol
type when generating related.d.ts
fileThe text was updated successfully, but these errors were encountered: