Output only the used/imported variables of a definitions file #5358
Unanswered
cbn-falias
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example
Lets say I have the following files:
components.d.ts
index.ts
Desired output
When building this, the
CustomApi.MyName
is irrelevant because it isn't used anywhere.The main question is: Is there a way to get an output, which I can process afterwards, so I get a clear list of ONLY the used variables of my definition file.
In an additional step I would like to get a simple result, such as
['MyPrice', 'MyBool']
.Notes
CustomApi.
inside the minified codeCustomApi
doesn't have to be global and could also be solved withimports
if it helps to get my desired outputOverall idea
components
components
components.d.ts
filecomponents
are actually usedcomponents
we have to expose in the final productBeta Was this translation helpful? Give feedback.
All reactions