I have a dependency which has no nullable annotati...
# announcements
j
I have a dependency which has no nullable annotation. Can I add these annotations externally in my project? I expect something similar to
.d.ts
.
g
For IDE you can use external annotations https://www.jetbrains.com/help/idea/external-annotations.html
but I’m not sure that there is any support of it in Kotlin compiler
e
https://discuss.kotlinlang.org/t/how-to-use-kotlin-jdk-annotations/1384/2
We no longer support external annotations in the compiler and no longer ship annotations for the JDK.
c
What platform are you using? If you're using JS or native, you'd have some kind of bindings file somewhere, so you could edit that? If you're using JVM, the best bet is to edit the original library and add annotations.