fix(client): mark the parallel register overloads for the clone gate
The two overload declarations differ only in the inject share; folding them would lose per-overload inference of I, so the duplication is deliberate.
This commit is contained in:
@@ -500,6 +500,9 @@ export class SlotCore {
|
|||||||
* @returns disposer removing the registration and its declarations
|
* @returns disposer removing the registration and its declarations
|
||||||
* (idempotent; stale disposers after a cascade are no-ops).
|
* (idempotent; stale disposers after a cascade are no-ops).
|
||||||
*/
|
*/
|
||||||
|
/* jscpd:ignore-start -- the two register overloads are deliberately
|
||||||
|
* parallel declarations differing only in the inject share; folding them
|
||||||
|
* would lose the per-overload inference of I. */
|
||||||
register<
|
register<
|
||||||
K extends keyof SlotMap & string,
|
K extends keyof SlotMap & string,
|
||||||
const D extends ChildrenDecl = Record<never, never>,
|
const D extends ChildrenDecl = Record<never, never>,
|
||||||
@@ -537,6 +540,7 @@ export class SlotCore {
|
|||||||
& SlotComponent<ComposedProps<K, keyof NoInfer<D> & keyof SlotMap & string, HandleOf<NoInfer<H>>, I, NoInfer<M>, NoInfer<N>>>
|
& SlotComponent<ComposedProps<K, keyof NoInfer<D> & keyof SlotMap & string, HandleOf<NoInfer<H>>, I, NoInfer<M>, NoInfer<N>>>
|
||||||
& RendersCheck<C, D>,
|
& RendersCheck<C, D>,
|
||||||
): () => void
|
): () => void
|
||||||
|
/* jscpd:ignore-end */
|
||||||
register(options: ErasedOptions, component: unknown): () => void {
|
register(options: ErasedOptions, component: unknown): () => void {
|
||||||
const rec = this.records.get(options.name)
|
const rec = this.records.get(options.name)
|
||||||
if (!rec?.spec) {
|
if (!rec?.spec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user