Skip to content

how to filter out source files without declarations during emission? #4702

Answered by timotheeguerin
boan-anbo asked this question in Q&A
Discussion options

You must be logged in to vote

I asume you are talking about the emitter framework, if you registered your declarations on the right scope you should be able to get all declarations added to a file and decide if you want to emit it or not.

content.$defs[sf.globalScope.declarations[0].name] = this.#finalizeSourceFileContent(sf);

Side note: emitter framework in its current state as a lot of issues and is not ideal, we are working on a completely different approach to help emitter authors

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@boan-anbo
Comment options

Answer selected by boan-anbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants