definePlugin
definePlugin<
Instance>(descriptor):FlakyPluginDescriptor<Instance>
Defined in: packages/core/src/store/plugin.ts:52
Register a plugin descriptor.
Silent overwrites would make the registry a last-import-wins lottery,
so duplicate names are rejected. Re-calling definePlugin with the
same descriptor instance (module-init idempotence) is allowed.
Type Parameters
Section titled “Type Parameters”Instance
Section titled “Instance”Instance
Parameters
Section titled “Parameters”descriptor
Section titled “descriptor”FlakyPluginDescriptor<Instance>
Returns
Section titled “Returns”FlakyPluginDescriptor<Instance>
Throws
Section titled “Throws”Error when another descriptor with descriptor.name is
already registered and it isn’t the same object reference.