mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
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
|
||||
* (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<
|
||||
K extends keyof SlotMap & string,
|
||||
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>>>
|
||||
& RendersCheck<C, D>,
|
||||
): () => void
|
||||
/* jscpd:ignore-end */
|
||||
register(options: ErasedOptions, component: unknown): () => void {
|
||||
const rec = this.records.get(options.name)
|
||||
if (!rec?.spec) {
|
||||
|
||||
Reference in New Issue
Block a user