Generating declarations for readonly/shallowReadonly ref causes TS4058 error
Version
3.2.19
Reproduction link
Steps to reproduce
Run npm run build
command
What is expected?
The source should be successfully compiled into .js
with .d.ts
declarations
What is actually happening?
The TS4058
error occurs because of RefSymbol
that is used by readonly(ref)
internally
The issue occurs only when "declarations": true
is set in tsconfig.json
as TypeScript can't resolve RefSymbol
type when generating related .d.ts
file
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