Open bitPogo opened 3 years ago
Are you saying that Asciidoctor.LoggerSeverity
is not available/visible in TypeScript?
Nope...it should be useable, but I see no place where it is actually used.
OK, I didn't know :smile:
I guess we could add a test in core/types/tests.ts
. This API can be useful when you want to use a custom logger. You can learn more about that here: https://github.com/asciidoctor/asciidoctor.js/blob/cb0db00597ae7ecfd65cc717f3e67f8c284d5abe/docs/modules/processor/pages/logging-api.adoc#custom-logger
It's actually usage is only internal, since the namespace is not ported to the outside...at least not in typescript. However the code is speaking about it. The question is, if it should be exposed (so adding to the Asciidoctor class LoggerSeverity) or let it internal (so the type definition is dead code and should be delete, since it is basically just there).
Ah...so my first answer was wrong...Asciidoctor.LoggerSeverity
is not present. Sorry a long day...I rewrote the whole types for kotlin...so thats why I stumbled over all those stuff...
This question refers only to the types, not to the actual code, since the usage there is clear by the context.