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.
This global function may be called as an alternative to setting
module.exports
directly. The advantage of usingdefineExtension()
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 theoptions
parameter in action functions and the population function.