Framework
WithPluginExtensions<TModel, TPlugins>
Type Alias: WithPluginExtensions<TModel, TPlugins>
type WithPluginExtensions<TModel, TPlugins> = TModel & TPlugins["modelExtensions"];Plugin extension type helper.
Use this to type model instances that have plugin extensions.
Type Parameters
| Type Parameter |
|---|
TModel |
TPlugins extends FlashcorePluginDefinition<unknown, unknown, unknown> |
Example
type UserWithPlugins = WithPluginExtensions<User, typeof softDelete & typeof realtime>