Type: Class

The SxModule object is used to accumulate schema experience configuration. This object should be passed around to configuration functions.

You should not create SxModule instances yourself. The only exception is when using the AsyncSchemaLocationToSchemaExperienceResolver, in which case you can use the addSchemaExperienceModule method on its registration API to create a new instance.

Constructor arguments

  1. sxManager


    Type: SxManager

  2. moduleName


    Type: String

  3. registrationApi


    Type: RegistrationApi



Type: Function

Mark the module as an addon. Addons and their dependencies will automatically be included in every schema experience that is created.