Draft PR for show case the typescript issue that we need to solve for #5854 step 1 #5863
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does
This is a draft PR for show case the typescript issue that we need to solve for:
Changes I Made so far
true
to make typescript output types (i.e..d.ts
file).Problem We Have:
checkout commit: 8f8349d (See my updates my latest commits updated tsconfig.json for some improvement)
yarn install
yarn tsc -b tsconfig.json
You will see error e.g.:
typeRoots
,types
,include
typeRoots
&types
and setinclude
to./lib
typeRoots
will cause issue of locating any type packages innode_moduels/@types/xx
What's next
I will keep trying (from time to time) on this PR to see if I can solve this problem and post back any of my findings here.
Please let me know if you have better ideas or solutions.
Update on 29th Sept 2021
Made the following changes:
typeRoots
&types
and setinclude
to./lib
paths
to fixterriajs-cesium
types bundling issue.There are now 133 errors left. Mainly in the following categories:
exported anonymous classes can't have private or protected members, because there's no way to represent that in a .d.ts file.
Here is a full list of error in google docs. We probably need to solve it one by one:
https://docs.google.com/spreadsheets/d/12lDW0jfA-2x6A4LE9J9BSXXaWNpClk1Ypm4_E8kB0bo
I've promote ticket #5854 to an epic and create 3 tickets (one for each of the problem category) for it.