type PluginSpecArgs<
Opts extends PluginOptions,
Fixed extends ScopeAxis
> =
unknown extends ScopeToPass<Opts, Fixed>
? [spec?: PluginLifecycleSpec]
: [
spec: PluginLifecycleSpec &
ScopeToPass<Opts, Fixed> & {
readonly [ScopedSpec]?: never;
}
];Opts
Opts extends PluginOptionsFixed
Fixed extends ScopeAxis