@@ -90,14 +90,14 @@ export class Scope {
9090 * Intercepts and handles property assignments on the target object. If a new value is
9191 * an object, it will be recursively proxied.
9292 *
93- * @param {import("./interface.ts").NonScopeMarked } target - The target object.
93+ * @param {Object & Record<string, any> } target - The target object.
9494 * @param {string } property - The name of the property being set.
9595 * @param {* } value - The new value being assigned to the property.
9696 * @param {Proxy<Scope> } proxy - The proxy intercepting property access
9797 * @returns {boolean } - Returns true to indicate success of the operation.
9898 */
9999 set (
100- target : import ( "./interface.ts" ) . NonScopeMarked ,
100+ target : any & Record < string , any > ,
101101 property : string ,
102102 value : any ,
103103 proxy : ProxyConstructor ,
@@ -135,10 +135,29 @@ export class Scope {
135135 listenerFn ?: ng . ListenerFn ,
136136 lazy ?: boolean ,
137137 ) : ( ) => void ;
138- $new ( childInstance : any ) : any ;
139- $newIsolate ( instance : any ) : any ;
140- $transcluded ( parentInstance : any ) : any ;
141- $eval ( expr : any , locals : any ) : any ;
138+ /**
139+ * @param {ng.Scope } [childInstance]
140+ * @returns {Proxy<ng.Scope> & ng.Scope }
141+ */
142+ $new ( childInstance ?: ng . Scope ) : ProxyConstructor & ng . Scope ;
143+ /**
144+ * @param {ng.Scope } [instance]
145+ * @returns {Proxy<ng.Scope> & ng.Scope }
146+ */
147+ $newIsolate ( instance ?: ng . Scope ) : ProxyConstructor & ng . Scope ;
148+ /**
149+ * @param {ng.Scope } parentInstance
150+ * @returns {Proxy<ng.Scope> & ng.Scope }
151+ */
152+ $transcluded ( parentInstance : ng . Scope ) : ProxyConstructor & ng . Scope ;
153+ /**
154+ * Evaluates an Angular expression in the context of this scope.
155+ *
156+ * @param {string } expr - Angular expression to evaluate
157+ * @param {Record<string, any> } [locals] - Optional local variables
158+ * @returns {any }
159+ */
160+ $eval ( expr : string , locals ?: Record < string , any > ) : any ;
142161 /**
143162 * @param {Object } newTarget
144163 */
@@ -157,9 +176,12 @@ export class Scope {
157176 /**
158177 * @param {string } name
159178 * @param {...any } args
160- * @returns {void }
179+ * @returns {import("./interface.ts").ScopeEvent | undefined }
161180 */
162- $emit ( name : string , ...args : any [ ] ) : void ;
181+ $emit (
182+ name : string ,
183+ ...args : any [ ]
184+ ) : import ( "./interface.ts" ) . ScopeEvent | undefined ;
163185 /**
164186 * @param {string } name
165187 * @param {...any } args
0 commit comments