• This global function may be called as an alternative to setting module.exports directly. The advantage of using defineExtension() is that you will automatically get type checking and autocomplete for your extension object.

    You may define the shape of the extensions's options object by specifying the CustomOptions generic type parameter. This will enable type checking and autocomplete for the options parameter in action functions and the population function.

    Type Parameters

    Parameters

    Returns void