Can a declaration be restricted from being visible...
# getting-started
a
Can a declaration be restricted from being visible only within modules in the project when writing a library?
w
That is exactly the internal modifier 🙂. https://kotlinlang.org/docs/visibility-modifiers.html#modules
e
internal
is for visibility within a single module
☝️ 3
if you want something to be visible to a group of modules, create a
@RequiresOptIn
annotation https://kotlinlang.org/docs/opt-in-requirements.html