Is there a standard for documenting sealed classes...
# dokka
a
Is there a standard for documenting sealed classes? Should I write the kdocs above each class declaration, or would it be done just once at the top sealed class? I think the former makes more sense, as different sealed classes can have different properties, but I want to be sure.
👍 1
s
If you need to document each different class declaration to make docs clear it’s then on each declaration
If your sealed class more like enum, then on top will be OK
a
Got it, thanks. 🙂