Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > IHeftLifecycleSession > requestAccessToPluginByName

IHeftLifecycleSession.requestAccessToPluginByName() method

Set a a callback which will be called if and after the specified plugin has been applied. This can be used to tap hooks on another lifecycle plugin that exists within the same phase.

Signature:

requestAccessToPluginByName<T extends object>(pluginToAccessPackage: string, pluginToAccessName: string, pluginApply: (pluginAccessor: T) => void): void;

Parameters

ParameterTypeDescription
pluginToAccessPackagestring
pluginToAccessNamestring
pluginApply(pluginAccessor: T) => void

Returns:

void