LogoRobo.js
Framework

WithClientExtensions<TClient, TPlugins>

Type Alias: WithClientExtensions<TClient, TPlugins>

type WithClientExtensions<TClient, TPlugins> = TClient & { [K in TPlugins["name"]]: TPlugins["clientExtensions"] };

Client extension type helper.

Use this to type Flashcore.$ with plugin client extensions.

Type Parameters

Type Parameter
TClient
TPlugins extends FlashcorePluginDefinition<unknown, unknown, unknown>

Example

type FlashcoreWithAudit = WithClientExtensions<typeof Flashcore.$, typeof auditPlugin>
// Flashcore.$.audit.history() is now typed

On this page