RequiredComponent with Custom Types

Can I require a component of a custom type somehow? Or is it only possible for Unity types?

You can require any type of component. The code is exactly the same. In c#

[RequireComponent(TypeOf(MyMonoBehaviour))]

Documentation